Template:CDA Document: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
===== [[Image:{{{3|draft}}}.gif]] <span id='{{{2}}}'>{{{1}}} Specification</span> {{{2}}} ===== | ===== [[Image:{{{3|draft}}}.gif]] <span id='{{{2}}}'>{{{1}}} Specification</span> {{{2}}} ===== | ||
{{Edit Button|{{{2|{{FULLPAGENAMEE}}}}}}} | {{Edit Button|{{{2|{{FULLPAGENAMEE}}}}}}}{{{4|}}} | ||
{{{4|}}} | |||
{{If|test={{{Standards|}}}|then= | {{If|test={{{Standards|}}}|then= | ||
| Line 16: | Line 14: | ||
}} | }} | ||
{{If|test={{{Data|}}}|then= | {{If|test={{{Data|{{{5|}}}}}}|then= | ||
====== Specification ====== | ====== Specification ====== | ||
{{{!}}class='wikitable' style='border-collapse: collapse; border: 1px solid black; width: 100%' | {{{!}}class='wikitable' style='border-collapse: collapse; border: 1px solid black; width: 100%' | ||
| Line 25: | Line 23: | ||
{{!}}- | {{!}}- | ||
{{{Data|}}} | {{{Data|}}} | ||
{{If|test={{{5|}}}|then={{CDA Document Content|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}}} }} | |||
{{If|test={{{10|}}}|then={{CDA Document Content|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}}} }} | |||
{{If|test={{{15|}}}|then={{CDA Document Content|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}}} }} | |||
{{If|test={{{20|}}}|then={{CDA Document Content|{{{2}}}|{{{21}}}|{{{22}}}|{{{23}}}|{{{24}}}}} }} | |||
{{If|test={{{25|}}}|then={{CDA Document Content|{{{2}}}|{{{26}}}|{{{27}}}|{{{28}}}|{{{29}}}}} }} | |||
{{If|test={{{30|}}}|then={{CDA Document Content|{{{2}}}|{{{31}}}|{{{32}}}|{{{33}}}|{{{34}}}}} }} | |||
{{If|test={{{35|}}}|then={{CDA Document Content|{{{2}}}|{{{36}}}|{{{37}}}|{{{38}}}|{{{39}}}}} }} | |||
{{If|test={{{40|}}}|then={{CDA Document Content|{{{2}}}|{{{41}}}|{{{42}}}|{{{43}}}|{{{44}}}}} }} | |||
{{If|test={{{45|}}}|then={{CDA Document Content|{{{2}}}|{{{46}}}|{{{47}}}|{{{48}}}|{{{49}}}}} }} | |||
{{If|test={{{50|}}}|then={{CDA Document Content|{{{2}}}|{{{51}}}|{{{52}}}|{{{53}}}|{{{54}}}}} }} | |||
{{If|test={{{55|}}}|then={{CDA Document Content|{{{2}}}|{{{56}}}|{{{57}}}|{{{58}}}|{{{59}}}}} }} | |||
{{If|test={{{60|}}}|then={{CDA Document Content|{{{2}}}|{{{61}}}|{{{62}}}|{{{63}}}|{{{64}}}}} }} | |||
{{!}}} | {{!}}} | ||
}} | |||
{{If|test={{{5|{{{LOINC|}}}}}}|then= | |||
===== Schematron ===== | |||
<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:ClinicalDocument'> | |||
Error: The {{{1}}} can only be used on Clinical Documents. | |||
</assert>{{If|test={{{Parent|}}}|then= | |||
<!-- Verify that the parent templateId is also present. --> | |||
<assert test='templateId[@root="{{{Parent}}}"]'> | |||
Error: The parent template identifier for medical summary is not present. | |||
</assert> | |||
}}}}{{If|test={{{LOINC|}}}|then= | |||
<!-- Verify the document type code --> | |||
<assert test='code[@code = "{{{LOINC}}}"]'> | |||
Error: The document type code of a {{{2}}} must be {{{LOINC}}} | |||
</assert> | |||
<assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'> | |||
Error: The document type code must come from the LOINC code | |||
system (2.16.840.1.113883.6.1). | |||
</assert> | |||
}}{{If|test={{{5|}}}|then={{CDA Document Schema {{{5}}}|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}}} | |||
}}{{If|test={{{10|}}}|then={{CDA Document Schema {{{10}}}|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}}} | |||
}}{{If|test={{{15|}}}|then={{CDA Document Schema {{{15}}}|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}}} | |||
}}{{If|test={{{20|}}}|then={{CDA Document Schema {{{20}}}|{{{2}}}|{{{21}}}|{{{22}}}|{{{23}}}|{{{24}}}}} | |||
}}{{If|test={{{25|}}}|then={{CDA Document Schema {{{25}}}|{{{2}}}|{{{26}}}|{{{27}}}|{{{28}}}|{{{29}}}}} | |||
}}{{If|test={{{30|}}}|then={{CDA Document Schema {{{30}}}|{{{2}}}|{{{31}}}|{{{32}}}|{{{33}}}|{{{34}}}}} | |||
}}{{If|test={{{35|}}}|then={{CDA Document Schema {{{35}}}|{{{2}}}|{{{36}}}|{{{37}}}|{{{38}}}|{{{39}}}}} | |||
}}{{If|test={{{40|}}}|then={{CDA Document Schema {{{40}}}|{{{2}}}|{{{41}}}|{{{42}}}|{{{43}}}|{{{44}}}}} | |||
}}{{If|test={{{45|}}}|then={{CDA Document Schema {{{45}}}|{{{2}}}|{{{46}}}|{{{47}}}|{{{48}}}|{{{49}}}}} | |||
}}{{If|test={{{50|}}}|then={{CDA Document Schema {{{50}}}|{{{2}}}|{{{51}}}|{{{52}}}|{{{53}}}|{{{54}}}}} | |||
}}{{If|test={{{55|}}}|then={{CDA Document Schema {{{55}}}|{{{2}}}|{{{56}}}|{{{57}}}|{{{58}}}|{{{59}}}}} | |||
}}{{If|test={{{60|}}}|then={{CDA Document Schema {{{60}}}|{{{2}}}|{{{61}}}|{{{62}}}|{{{63}}}|{{{64}}}}} | |||
}}{{If|test={{{5|{{{LOINC|}}}}}}|then= | |||
</rule> | |||
</pattern> | |||
}} | }} | ||