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 69: Line 69:
<pattern name='Template_{{{2}}}'><br/>
<pattern name='Template_{{{2}}}'><br/>
&nbsp;&nbsp;<rule context='*[templateId/@root="{{{2}}}"]'><br/>
&nbsp;&nbsp;<rule context='*[templateId/@root="{{{2}}}"]'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<!-- 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/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='../cda:ClinicalDocument'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='../cda:ClinicalDocument'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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/>
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>{{If|test={{{Parent|}}}|then=
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>{{If|test={{{Parent|}}}|then=
&nbsp;&nbsp;&nbsp;&nbsp;<!-- Verify that the parent templateId is also present. --><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Verify that the parent templateId is also present. --><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='templateId[@root="{{{Parent}}}"]'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='templateId[@root="{{{Parent}}}"]'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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/>
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>
}}}}{{If|test={{{LOINC|}}}|then=
}}}}{{If|test={{{LOINC|}}}|then=
&nbsp;&nbsp;&nbsp;&nbsp;<!-- Verify the document type code --><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Verify the document type code --><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='code[@code = "{{{LOINC}}}"]'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='code[@code = "{{{LOINC}}}"]'><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The document type code of a {{{1}}} must be {{{LOINC}}}<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The document type code of a {{{1}}} must be {{{LOINC}}}<br/>

Revision as of 18:40, 18 May 2007

{{{1}}} Specification {{{2}}}