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 139: Line 139:
     <assert test='../cda:ClinicalDocument'>
     <assert test='../cda:ClinicalDocument'>
       Error: The {{{1}}} can only be used on Clinical Documents.
       Error: The {{{1}}} can only be used on Clinical Documents.
     </assert><br/>{{If|test={{{Parent|}}}|then=
     </assert>{{If|test={{{Parent|}}}|then=&nbsp;
     &lt;!-- Verify that the parent templateId is also present. -->
     &lt;!-- Verify that the parent templateId is also present. -->
     <assert test='templateId[@root="{{{Parent}}}"]'>
     <assert test='templateId[@root="{{{Parent}}}"]'>
       Error: The parent template identifier for {{{1}}} is not present.
       Error: The parent template identifier for {{{1}}} is not present.
     </assert>
     </assert>}}}}{{If|test={{{LOINC|x}}}|then=&nbsp;
}}}}{{If|test={{{LOINC|}}}|then=
     &lt;!-- Verify the document type code -->
     &lt;!-- Verify the document type code -->
     <assert test='code[@code = "{{{LOINC}}}"]'>
     <assert test='code[@code = "{{{LOINC}}}"]'>
Line 152: Line 151:
       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).
     </assert>
     </assert>}}{{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}}}}}
}}{{If|test={{{15|}}}|then={{Schematron Rule|{{{15}}}|{{{1}}}|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}}}
}}{{If|test={{{15|}}}|then={{Schematron Rule|{{{15}}}|{{{1}}}|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}}}
Line 192: Line 190:
}}{{If|test={{{190|}}}|then={{Schematron Rule|{{{190}}}|{{{1}}}|{{{2}}}|{{{191}}}|{{{192}}}|{{{193}}}|{{{194}}}}}  
}}{{If|test={{{190|}}}|then={{Schematron Rule|{{{190}}}|{{{1}}}|{{{2}}}|{{{191}}}|{{{192}}}|{{{193}}}|{{{194}}}}}  
}}{{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;
   </rule>
   </rule>
  </pattern>
  </pattern>

Revision as of 21:24, 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>

 

   <!-- Verify the document type code -->
   <assert test='code[@code = "{{{LOINC}}}"]'>
     Error: The document type code of a {{{1}}} must be {{{LOINC}}}
   </assert>
   <assert test='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>