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 68: Line 68:
<div style='font-family: monospace; line-height: 0.9; border: 1px solid black;'>
<div style='font-family: monospace; line-height: 0.9; border: 1px solid black;'>
<pattern name='Template_{{{2}}}'>
<pattern name='Template_{{{2}}}'>
:<rule context='*[templateId/@root="{{{2}}}"]'>
&nbsp;&nbsp;<rule context='*[templateId/@root="{{{2}}}"]'>
:<!-- Verify that the template id is used on the appropriate type of object -->
&nbsp;&nbsp;&nbsp;&nbsp;<!-- Verify that the template id is used on the appropriate type of object -->
:<assert test='../cda:ClinicalDocument'>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='../cda:ClinicalDocument'>
::Error: The {{{1}}} can only be used on Clinical Documents.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The {{{1}}} can only be used on Clinical Documents.
:</assert>{{If|test={{{Parent|}}}|then=
&nbsp;&nbsp;&nbsp;&nbsp;</assert>{{If|test={{{Parent|}}}|then=
:<!-- Verify that the parent templateId is also present. -->
&nbsp;&nbsp;&nbsp;&nbsp;<!-- Verify that the parent templateId is also present. -->
:<assert test='templateId[@root="{{{Parent}}}"]'>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='templateId[@root="{{{Parent}}}"]'>
::Error: The parent template identifier for medical summary is not present.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The parent template identifier for medical summary is not present.
:</assert>
&nbsp;&nbsp;&nbsp;&nbsp;</assert>
}}}}{{If|test={{{LOINC|}}}|then=
}}}}{{If|test={{{LOINC|}}}|then=
:<!-- Verify the document type code -->
&nbsp;&nbsp;&nbsp;&nbsp;<!-- Verify the document type code -->
:<assert test='code[@code = "{{{LOINC}}}"]'>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='code[@code = "{{{LOINC}}}"]'>
::Error: The document type code of a {{{2}}} must be {{{LOINC}}}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The document type code of a {{{2}}} must be {{{LOINC}}}
:</assert>
&nbsp;&nbsp;&nbsp;&nbsp;</assert>
:<assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'>
&nbsp;&nbsp;<assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'>
::Error: The document type code must come from the LOINC code  
&nbsp;&nbsp;&nbsp;&nbsp;Error: The document type code must come from the LOINC code  
::system (2.16.840.1.113883.6.1).
&nbsp;&nbsp;&nbsp;&nbsp;system (2.16.840.1.113883.6.1).
:</assert>
&nbsp;&nbsp;</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}}}}}  

Revision as of 17:52, 18 May 2007

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