Template:CDA Document: Difference between revisions
Jump to navigation
Jump to search
Tsoutherland (talk | contribs) No edit summary |
mNo edit summary |
||
| Line 45: | Line 45: | ||
{{If|test={{{90|}}}|then={{CDA Document Content|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}}} }} | {{If|test={{{90|}}}|then={{CDA Document Content|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}}} }} | ||
{{If|test={{{95|}}}|then={{CDA Document Content|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}}} }} | {{If|test={{{95|}}}|then={{CDA Document Content|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}}} }} | ||
{{If|test={{{105|}}}|then={{CDA Document Content|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}}} }} | {{If|test={{{100|}}}|then={{CDA Document Content|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}}} }}{{If|test={{{105|}}}|then={{CDA Document Content|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}}} }} | ||
{{If|test={{{110|}}}|then={{CDA Document Content|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}}} }} | {{If|test={{{110|}}}|then={{CDA Document Content|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}}} }} | ||
{{If|test={{{115|}}}|then={{CDA Document Content|{{{2}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}}} }} | {{If|test={{{115|}}}|then={{CDA Document Content|{{{2}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}}} }} | ||
| Line 108: | Line 108: | ||
}}{{If|test={{Equal|{{{90}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}}} | }}{{If|test={{Equal|{{{90}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}}} | ||
}}{{If|test={{Equal|{{{95}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}}} | }}{{If|test={{Equal|{{{95}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}}} | ||
}}{{If|test={{Equal|{{{100}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}}} | |||
}}{{If|test={{Equal|{{{105}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}}} | }}{{If|test={{Equal|{{{105}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}}} | ||
}}{{If|test={{Equal|{{{110}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}}} | }}{{If|test={{Equal|{{{110}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}}} | ||
Revision as of 18:55, 20 August 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>