Template:CDA Document: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 77: | Line 77: | ||
{{If|test={{{Note|}}}|then={{{Note}}}}} | {{If|test={{{Note|}}}|then={{{Note}}}}} | ||
======Conformance====== | ======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. {{If|test={{{Parent|}}}|then=A CDA Document may conform to more than one template. This content module inherits from the {{ILink|{{ | 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. {{If|test={{{Parent|}}}|then=A CDA Document may conform to more than one template. This content module inherits from the {{ILink|{{PAGENAME}}|{{{Parent}}}|{{{ParentName|{{{Parent}}}}}}}} content module, and so must conform to the requirements of that template as well, thus all <templateId> elements shown in the example below shall be included.}} | ||
{| | {| | ||
|- | |- | ||
Revision as of 12:56, 1 October 2008
{{{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='20260407012005'/> <confidentialityCode code='N' displayName='Normal' codeSystem='2.16.840.1.113883.5.25' codeSystemName='Confidentiality' /> <languageCode code='en-US'/> : <component><structuredBody> </structuredBody></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>