Template:CDA Document: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 135: | Line 135: | ||
====== Schematron ====== | ====== Schematron ====== | ||
<pattern name='Template_{{{2}}}'> | <pattern name='Template_{{{2}}}'> | ||
<rule context='*[templateId/@root="{{{2}}}"]'> | <rule context='*[cda:templateId/@root="{{{2}}}"]'> | ||
<!-- Verify that the template id is used on the appropriate type of object --> | <!-- Verify that the template id is used on the appropriate type of object --> | ||
<assert test='../cda:ClinicalDocument'> | <assert test='../cda:ClinicalDocument'> | ||
| Line 141: | Line 141: | ||
</assert>{{If|test={{{Parent|}}}|then= | </assert>{{If|test={{{Parent|}}}|then= | ||
<!-- Verify that the parent templateId is also present. --> | <!-- Verify that the parent templateId is also present. --> | ||
<assert test='templateId[@root="{{{Parent}}}"]'> | <assert test='cda:templateId[@root="{{{Parent}}}"]'> | ||
Error: The parent template identifier for {{{1}}} is not present. | Error: The parent template identifier for {{{1}}} is not present. | ||
</assert>}}}}{{If|test={{{LOINC|x}}}|then= | </assert>}}}}{{If|test={{{LOINC|x}}}|then= | ||
<!-- Verify the document type code --> | <!-- Verify the document type code --> | ||
<assert test='code[@code = "{{{LOINC}}}"]'> | <assert test='cda:code[@code = "{{{LOINC}}}"]'> | ||
Error: The document type code of a {{{1}}} must be {{{LOINC}}} | Error: The document type code of a {{{1}}} must be {{{LOINC}}} | ||
</assert> | </assert> | ||
<assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'> | <assert test='cda:code[@codeSystem = "2.16.840.1.113883.6.1"]'> | ||
Error: The document type code must come from the LOINC code | Error: The document type code must come from the LOINC code | ||
system (2.16.840.1.113883.6.1). | system (2.16.840.1.113883.6.1). | ||
Revision as of 21:26, 25 July 2007
{{{1}}} Specification {{{2}}}
Conformance
CDA Release 2.0 documents that conform to the requirements of this content module shall indicate their conformance by the inclusion of the appropriate <templateId> elements in the header of the document. This is shown in the sample document below.
<ClinicalDocument xmlns='urn:hl7-org:v3'> <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/> <templateId root='{{{2}}}'/> <id root=' ' extension=' '/> <code code=' ' displayName=' ' codeSystem='2.16.840.1.113883.6.1' codeSystemName='LOINC'/> <title>{{{1}}}</title> <effectiveTime value='20260408012005'/> <confidentialityCode code='N' displayName='Normal' codeSystem='2.16.840.1.113883.5.25' codeSystemName='Confidentiality' /> <languageCode code='en-US'/> : <component><structuredBody> </strucuredBody></component> </ClinicalDocument> |
<!-- Verify the document type code -->
<assert test='cda:code[@code = "{{{LOINC}}}"]'>
Error: The document type code of a {{{1}}} must be {{{LOINC}}}
</assert>
<assert test='cda:code[@codeSystem = "2.16.840.1.113883.6.1"]'>
Error: The document type code must come from the LOINC code
system (2.16.840.1.113883.6.1).
</assert>