Jul 27, 2011 at 4:31 AM
Edited Jul 27, 2011 at 7:47 AM
HealthVault has XSLTs for transforming Thing types into a variety of formats. You can query for transforms using the GetThingType method (there is a unit test which calls GetThingType). If you ask for ThingTypeSectionSpec.TRANSFORMS, you get
the name of the available transforms. If you ask for ThingTypeSectionSpec.TRANSFORMSOURCE you get the actual XSLT.
The transform for converting CCR to healthvault datatypes can be retrieved by querying for the CCR ThingType (1E1CCBFC-A55D-4D91-8940-FA2FBF73C195) and looking for the transform named "tohv". These transforms contain C# code, however, so they can only
be run on machines with access to the CLR.
If you want to get a collection of Things from HealthVault in a ccr, you can let HealthVault do the heavy lifting and use request.setFinalXsl("toccr");
CCR was made immutable to satisfy many of the clinical data providers who didn't want their data to be editable. HealthVault will extract Thing types out of the CCR and those are editable.