Template:CDA Document: Difference between revisions

From IHE Wiki
Jump to navigation Jump to search
Kboone (talk | contribs)
mNo edit summary
Kboone (talk | contribs)
mNo edit summary
Line 134: Line 134:
{{If|test={{{5|{{{LOINC|}}}}}}|then=
{{If|test={{{5|{{{LOINC|}}}}}}|then=
====== Schematron ======
====== Schematron ======
<div style='font-family: monospace; line-height: 0.9; border: 1px solid black;'>
<pattern name='Template_{{{2}}}'><br/>
<pattern name='Template_{{{2}}}'><br/>
  <rule context='*[templateId/@root="{{{2}}}"]'><br/>
&nbsp;&nbsp;<rule context='*[templateId/@root="{{{2}}}"]'><br/>
    &lt;!-- Verify that the template id is used on the appropriate type of object --><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Verify that the template id is used on the appropriate type of object --><br/>
    <assert test='../cda:ClinicalDocument'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='../cda:ClinicalDocument'><br/>
      Error: The {{{1}}} can only be used on Clinical Documents.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The {{{1}}} can only be used on Clinical Documents.<br/>
    </assert><br/>{{If|test={{{Parent|}}}|then=
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>{{If|test={{{Parent|}}}|then=
    &lt;!-- Verify that the parent templateId is also present. --><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Verify that the parent templateId is also present. --><br/>
    <assert test='templateId[@root="{{{Parent}}}"]'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='templateId[@root="{{{Parent}}}"]'><br/>
      Error: The parent template identifier for {{{1}}} is not present.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The parent template identifier for {{{1}}} is not present.<br/>
    </assert><br/>
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>
}}}}{{If|test={{{LOINC|}}}|then=
}}}}{{If|test={{{LOINC|}}}|then=
&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Verify the document type code --><br/>
    &lt;!-- Verify the document type code --><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='code[@code = "{{{LOINC}}}"]'><br/>
    <assert test='code[@code = "{{{LOINC}}}"]'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The document type code of a {{{1}}} must be {{{LOINC}}}<br/>
      Error: The document type code of a {{{1}}} must be {{{LOINC}}}<br/>
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>
    </assert><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'><br/>
    <assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The document type code must come from the LOINC code <br/>
      Error: The document type code must come from the LOINC code <br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;system (2.16.840.1.113883.6.1).<br/>
      system (2.16.840.1.113883.6.1).<br/>
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>
    </assert><br/>
}}{{If|test={{{5|}}}|then={{Schematron Rule|{{{5}}}|{{{1}}}|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}}}
}}{{If|test={{{5|}}}|then={{Schematron Rule|{{{5}}}|{{{1}}}|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}}}
}}{{If|test={{{10|}}}|then={{Schematron Rule|{{{10}}}|{{{1}}}|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}}}
}}{{If|test={{{10|}}}|then={{Schematron Rule|{{{10}}}|{{{1}}}|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}}}
Line 194: Line 193:
}}{{If|test={{{195|}}}|then={{Schematron Rule|{{{195}}}|{{{1}}}|{{{2}}}|{{{196}}}|{{{197}}}|{{{198}}}|{{{199}}}}}  
}}{{If|test={{{195|}}}|then={{Schematron Rule|{{{195}}}|{{{1}}}|{{{2}}}|{{{196}}}|{{{197}}}|{{{198}}}|{{{199}}}}}  
}}{{If|test={{{5|{{{LOINC|}}}}}}|then={{{Schematron|}}}
}}{{If|test={{{5|{{{LOINC|}}}}}}|then={{{Schematron|}}}
&nbsp;&nbsp;</rule><br/>
  </rule><br/>
</pattern>
</pattern>
</div>
 
}}
}}



Revision as of 20:54, 19 June 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.

Sample {{{1}}} Document
<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>