Difference between revisions of "Template:CDA Section"
Jump to navigation
Jump to search
m |
m |
||
Line 242: | Line 242: | ||
{{If|test={{{5|{{{LOINC|}}}}}}|then= | {{If|test={{{5|{{{LOINC|}}}}}}|then= | ||
====== Schematron ====== | ====== Schematron ====== | ||
− | + | <pattern name='Template_{{{2}}}'> | |
− | <pattern name='Template_{{{2}}}' | + | <rule context='*[templateId/@root="{{{2}}}"]'> |
− | + | <!-- Verify that the template id is used on the appropriate type of object --> | |
− | + | <assert test='../cda:section'> | |
− | + | Error: The {{{1}}} can only be used on sections. | |
− | + | </assert>{{If|test={{{Parent|}}}|then= | |
− | + | <!-- Verify that the parent templateId is also present. --> | |
− | + | <assert test='templateId[@root="{{{Parent}}}"]'> | |
− | + | Error: The parent template identifier for {{{1}}} is not present. | |
− | + | </assert>}}}}{{If|test={{{LOINC|}}}|then= | |
− | + | <!-- Verify the section type code --> | |
− | }}}}{{If|test={{{LOINC|}}}|then= | + | <assert test='code[@code = "{{{LOINC}}}"]'> |
− | + | Error: The section type code of a {{{1}}} must be {{{LOINC}}} | |
− | + | </assert> | |
− | + | <assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'> | |
− | + | Error: The section type code must come from the LOINC code | |
− | + | system (2.16.840.1.113883.6.1). | |
− | + | </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 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= |
− | {{If|test={{{5|{{{LOINC|}}}}}}|then= | + | </rule> |
− | + | </pattern> | |
− | </pattern> | + | |
− | |||
}} | }} | ||
Revision as of 21:38, 19 June 2007
CDA Section Section
Template ID | {{{2}}} | |
---|---|---|
General Description | {{{4}}} |
<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}} }}