Template:CDA Document: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 69: | Line 69: | ||
<pattern name='Template_{{{2}}}'><br/> | <pattern name='Template_{{{2}}}'><br/> | ||
<rule context='*[templateId/@root="{{{2}}}"]'><br/> | <rule context='*[templateId/@root="{{{2}}}"]'><br/> | ||
| <!-- Verify that the template id is used on the appropriate type of object --><br/> | ||
<assert test='../cda:ClinicalDocument'><br/> | <assert test='../cda:ClinicalDocument'><br/> | ||
Error: The {{{1}}} can only be used on Clinical Documents.<br/> | Error: The {{{1}}} can only be used on Clinical Documents.<br/> | ||
</assert><br/>{{If|test={{{Parent|}}}|then= | </assert><br/>{{If|test={{{Parent|}}}|then= | ||
| <!-- Verify that the parent templateId is also present. --><br/> | ||
<assert test='templateId[@root="{{{Parent}}}"]'><br/> | <assert test='templateId[@root="{{{Parent}}}"]'><br/> | ||
Error: The parent template identifier for {{{1}}} is not present.<br/> | Error: The parent template identifier for {{{1}}} is not present.<br/> | ||
</assert><br/> | </assert><br/> | ||
}}}}{{If|test={{{LOINC|}}}|then= | }}}}{{If|test={{{LOINC|}}}|then= | ||
| <!-- Verify the document type code --><br/> | ||
<assert test='code[@code = "{{{LOINC}}}"]'><br/> | <assert test='code[@code = "{{{LOINC}}}"]'><br/> | ||
Error: The document type code of a {{{1}}} must be {{{LOINC}}}<br/> | Error: The document type code of a {{{1}}} must be {{{LOINC}}}<br/> | ||