Difference between revisions of "Template:CDA Section"

From IHE Wiki
Jump to navigation Jump to search
m
m
Line 242: Line 242:
 
{{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}}}'>  
<pattern name='Template_{{{2}}}'><br/>
+
  <rule context='*[templateId/@root="{{{2}}}"]'>  
&nbsp;&nbsp;<rule context='*[templateId/@root="{{{2}}}"]'><br/>
+
      &lt;!-- Verify that the template id is used on the appropriate type of object -->  
&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Verify that the template id is used on the appropriate type of object --><br/>
+
    <assert test='../cda:section'>  
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='../cda:section'><br/>
+
      Error: The {{{1}}} can only be used on sections.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The {{{1}}} can only be used on sections.<br/>
+
    </assert>{{If|test={{{Parent|}}}|then=&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>{{If|test={{{Parent|}}}|then=
+
    &lt;!-- Verify that the parent templateId is also present. -->  
&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Verify that the parent templateId is also present. --><br/>
+
    <assert test='templateId[@root="{{{Parent}}}"]'>  
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='templateId[@root="{{{Parent}}}"]'><br/>
+
      Error: The parent template identifier for {{{1}}} is not present.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The parent template identifier for {{{1}}} is not present.<br/>
+
    </assert>}}}}{{If|test={{{LOINC|}}}|then=&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>
+
    &lt;!-- Verify the section type code -->  
}}}}{{If|test={{{LOINC|}}}|then=
+
    <assert test='code[@code = "{{{LOINC}}}"]'>  
&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Verify the section type code --><br/>
+
      Error: The section type code of a {{{1}}} must be {{{LOINC}}}  
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='code[@code = "{{{LOINC}}}"]'><br/>
+
    </assert>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The section type code of a {{{1}}} must be {{{LOINC}}}<br/>
+
    <assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'>  
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>
+
      Error: The section type code must come from the LOINC code
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'><br/>
+
      system (2.16.840.1.113883.6.1).  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The section type code must come from the LOINC code <br/>
+
    </assert>}}{{If|test={{{5|}}}|then={{Schematron Rule|{{{5}}}|{{{1}}}|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}}}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;system (2.16.840.1.113883.6.1).<br/>
 
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>&nbsp;&nbsp;&nbsp;&nbsp;
 
}}{{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 301: Line 298:
 
}}{{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={{{Schematron|}}}|then={{{Schematron}}}}}
+
}}{{If|test={{{Schematron|}}}|then={{{Schematron}}}}}{{If|test={{{5|{{{LOINC|}}}}}}|then=&nbsp;
{{If|test={{{5|{{{LOINC|}}}}}}|then=
+
  </rule>  
&nbsp;&nbsp;</rule><br/>
+
</pattern>
</pattern>
+
 
</div>
 
 
}}
 
}}
  

Revision as of 21:38, 19 June 2007

Draft.gif CDA Section Section
Template ID {{{2}}}
General Description {{{4}}}



Sample {{{1}}} Section
<component>
  <section>
    <templateId root='{{{2}}}'/>
    <id root=' ' extension=' '/>
    <code code=' ' displayName=' '
      codeSystem='2.16.840.1.113883.6.1' codeSystemName='LOINC'/>
    <text>
      Text as described above
    </text>  
       
  </section>
</component>
{{CDA Section|Section Name|OID|Status|Description
    |Parent=ParentOID|ParentName=Parent Template Name
    |Code={{CDA Section Code|Section Name|Entry Name 1|Opt|LOINC|Comment}}
                :
          {{CDA Section Code|Section Name|Entry Name N|Opt|LOINC|Comment}}

    |Entry={{CDA Section Content|Section Name|Entry Name 1|Opt|OID|Comment}}
                :
           {{CDA Section Content|Section Name|Entry Name N|Opt|OID|Comment}}

    |Subsections={{CDA Section Content|Section Name|Subsection Name 1|Opt|OID|Comment}}
                    :
                 {{CDA Section Content|Section Name|Subsection Name N|Opt|OID|Comment}}
 }}