The examples provided in this folder (from the CfH MIM 7.1.00) are valid against CDA R2.

The instances contain references that allow them to be additionally validated against a series of templates. 

These templates are in the form of CIMs/RMIMs (visio models), and schemas have been made from them 
(see subfolder ValidationTransform/schemas).

Since schema validation is inflexible with respect to element naming, a transformation step is necessary before the schemas can be used. 

The transform at ValidationTransform/MakeValidationFormatFromCDA.xsl performs the necessary conversion.
Use of the transform is documented in the top of the file.

This validation method has the disadvantage that instances are more verbose than they could be, but this is necessary until a more sophisticated template validation engine becomes widely available.

Example outputs from the transformation are in ValidationTransform/TransformOutput. These refer to the schemas underneath the ValidationTransform folder, which they will validate against. 

Rik Smithies
December 2006

----------

Note: for documentation of the template models, and the CDA documents themselves, see the MIM (Message Implementation Manual) as created by the NHS. Members of HL7 (HL7 Inc. or an affiliate) are advised to contact Laura Sato, laura.sato@nhs.net, to get hold of a copy of the MIM. Members of HL7 UK can download a copy of the specification from the members area of the hl7.org.uk website.