Difference between revisions of "Template:CDA Document"
Jump to navigation
Jump to search
m |
m |
||
Line 161: | Line 161: | ||
Error: The document type code must come from the LOINC code | Error: The document type code must come from the LOINC code | ||
system (2.16.840.1.113883.6.1). | system (2.16.840.1.113883.6.1). | ||
− | </assert>}}{{If|test={{{5|}}}|then={{Schematron Rule|{{{5}}}|{{{1}}}|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{{{{7}}}}}} }} | + | </assert>}}{{If|test={{{5|}}}|then={{Schematron Rule|{{{5}}}|{{{1}}}|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{{{{7}}}|}}}}} |
− | }}{{If|test={{{10|}}}|then={{Schematron Rule|{{{10}}}|{{{1}}}|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}|{{{{{{12}}}}}} }} | + | }}{{If|test={{{10|}}}|then={{Schematron Rule|{{{10}}}|{{{1}}}|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}|{{{{{{12}}}|}}}}} |
− | }}{{If|test={{{15|}}}|then={{Schematron Rule|{{{15}}}|{{{1}}}|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}|{{{{{{17}}}}}} }} | + | }}{{If|test={{{15|}}}|then={{Schematron Rule|{{{15}}}|{{{1}}}|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}|{{{{{{17}}}|}}}}} |
− | }}{{If|test={{{20|}}}|then={{Schematron Rule|{{{20}}}|{{{1}}}|{{{2}}}|{{{21}}}|{{{22}}}|{{{23}}}|{{{24}}}|{{{{{{22}}}}}} }} | + | }}{{If|test={{{20|}}}|then={{Schematron Rule|{{{20}}}|{{{1}}}|{{{2}}}|{{{21}}}|{{{22}}}|{{{23}}}|{{{24}}}|{{{{{{22}}}|}}}}} |
− | }}{{If|test={{{25|}}}|then={{Schematron Rule|{{{25}}}|{{{1}}}|{{{2}}}|{{{26}}}|{{{27}}}|{{{28}}}|{{{29}}}|{{{{{{27}}}}}} }} | + | }}{{If|test={{{25|}}}|then={{Schematron Rule|{{{25}}}|{{{1}}}|{{{2}}}|{{{26}}}|{{{27}}}|{{{28}}}|{{{29}}}|{{{{{{27}}}|}}}}} |
− | }}{{If|test={{{30|}}}|then={{Schematron Rule|{{{30}}}|{{{1}}}|{{{2}}}|{{{31}}}|{{{32}}}|{{{33}}}|{{{34}}}|{{{{{{32}}}}}} }} | + | }}{{If|test={{{30|}}}|then={{Schematron Rule|{{{30}}}|{{{1}}}|{{{2}}}|{{{31}}}|{{{32}}}|{{{33}}}|{{{34}}}|{{{{{{32}}}|}}}}} |
− | }}{{If|test={{{35|}}}|then={{Schematron Rule|{{{35}}}|{{{1}}}|{{{2}}}|{{{36}}}|{{{37}}}|{{{38}}}|{{{39}}}|{{{{{{37}}}}}} }} | + | }}{{If|test={{{35|}}}|then={{Schematron Rule|{{{35}}}|{{{1}}}|{{{2}}}|{{{36}}}|{{{37}}}|{{{38}}}|{{{39}}}|{{{{{{37}}}|}}}}} |
− | }}{{If|test={{{40|}}}|then={{Schematron Rule|{{{40}}}|{{{1}}}|{{{2}}}|{{{41}}}|{{{42}}}|{{{43}}}|{{{44}}}|{{{{{{42}}}}}} }} | + | }}{{If|test={{{40|}}}|then={{Schematron Rule|{{{40}}}|{{{1}}}|{{{2}}}|{{{41}}}|{{{42}}}|{{{43}}}|{{{44}}}|{{{{{{42}}}|}}}}} |
− | }}{{If|test={{{45|}}}|then={{Schematron Rule|{{{45}}}|{{{1}}}|{{{2}}}|{{{46}}}|{{{47}}}|{{{48}}}|{{{49}}}|{{{{{{47}}}}}} }} | + | }}{{If|test={{{45|}}}|then={{Schematron Rule|{{{45}}}|{{{1}}}|{{{2}}}|{{{46}}}|{{{47}}}|{{{48}}}|{{{49}}}|{{{{{{47}}}|}}}}} |
− | }}{{If|test={{{50|}}}|then={{Schematron Rule|{{{50}}}|{{{1}}}|{{{2}}}|{{{51}}}|{{{52}}}|{{{53}}}|{{{54}}}|{{{{{{52}}}}}} }} | + | }}{{If|test={{{50|}}}|then={{Schematron Rule|{{{50}}}|{{{1}}}|{{{2}}}|{{{51}}}|{{{52}}}|{{{53}}}|{{{54}}}|{{{{{{52}}}|}}}}} |
− | }}{{If|test={{{55|}}}|then={{Schematron Rule|{{{55}}}|{{{1}}}|{{{2}}}|{{{56}}}|{{{57}}}|{{{58}}}|{{{59}}}|{{{{{{57}}}}}} }} | + | }}{{If|test={{{55|}}}|then={{Schematron Rule|{{{55}}}|{{{1}}}|{{{2}}}|{{{56}}}|{{{57}}}|{{{58}}}|{{{59}}}|{{{{{{57}}}|}}}}} |
− | }}{{If|test={{{60|}}}|then={{Schematron Rule|{{{60}}}|{{{1}}}|{{{2}}}|{{{61}}}|{{{62}}}|{{{63}}}|{{{64}}}|{{{{{{62}}}}}} }} | + | }}{{If|test={{{60|}}}|then={{Schematron Rule|{{{60}}}|{{{1}}}|{{{2}}}|{{{61}}}|{{{62}}}|{{{63}}}|{{{64}}}|{{{{{{62}}}|}}}}} |
− | }}{{If|test={{{65|}}}|then={{Schematron Rule|{{{65}}}|{{{1}}}|{{{2}}}|{{{66}}}|{{{67}}}|{{{68}}}|{{{69}}}|{{{{{{67}}}}}} }} | + | }}{{If|test={{{65|}}}|then={{Schematron Rule|{{{65}}}|{{{1}}}|{{{2}}}|{{{66}}}|{{{67}}}|{{{68}}}|{{{69}}}|{{{{{{67}}}|}}}}} |
− | }}{{If|test={{{70|}}}|then={{Schematron Rule|{{{70}}}|{{{1}}}|{{{2}}}|{{{71}}}|{{{72}}}|{{{73}}}|{{{74}}}|{{{{{{72}}}}}} }} | + | }}{{If|test={{{70|}}}|then={{Schematron Rule|{{{70}}}|{{{1}}}|{{{2}}}|{{{71}}}|{{{72}}}|{{{73}}}|{{{74}}}|{{{{{{72}}}|}}}}} |
− | }}{{If|test={{{75|}}}|then={{Schematron Rule|{{{75}}}|{{{1}}}|{{{2}}}|{{{76}}}|{{{77}}}|{{{78}}}|{{{79}}}|{{{{{{77}}}}}} }} | + | }}{{If|test={{{75|}}}|then={{Schematron Rule|{{{75}}}|{{{1}}}|{{{2}}}|{{{76}}}|{{{77}}}|{{{78}}}|{{{79}}}|{{{{{{77}}}|}}}}} |
− | }}{{If|test={{{80|}}}|then={{Schematron Rule|{{{80}}}|{{{1}}}|{{{2}}}|{{{81}}}|{{{82}}}|{{{83}}}|{{{84}}}|{{{{{{82}}}}}} }} | + | }}{{If|test={{{80|}}}|then={{Schematron Rule|{{{80}}}|{{{1}}}|{{{2}}}|{{{81}}}|{{{82}}}|{{{83}}}|{{{84}}}|{{{{{{82}}}|}}}}} |
− | }}{{If|test={{{85|}}}|then={{Schematron Rule|{{{85}}}|{{{1}}}|{{{2}}}|{{{86}}}|{{{87}}}|{{{88}}}|{{{89}}}|{{{{{{87}}}}}} }} | + | }}{{If|test={{{85|}}}|then={{Schematron Rule|{{{85}}}|{{{1}}}|{{{2}}}|{{{86}}}|{{{87}}}|{{{88}}}|{{{89}}}|{{{{{{87}}}|}}}}} |
− | }}{{If|test={{{90|}}}|then={{Schematron Rule|{{{90}}}|{{{1}}}|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}|{{{{{{92}}}}}} }} | + | }}{{If|test={{{90|}}}|then={{Schematron Rule|{{{90}}}|{{{1}}}|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}|{{{{{{92}}}|}}}}} |
− | }}{{If|test={{{95|}}}|then={{Schematron Rule|{{{95}}}|{{{1}}}|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}|{{{{{{97}}}}}} }} | + | }}{{If|test={{{95|}}}|then={{Schematron Rule|{{{95}}}|{{{1}}}|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}|{{{{{{97}}}|}}}}} |
− | }}{{If|test={{{100|}}}|then={{Schematron Rule|{{{100}}}|{{{1}}}|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}|{{{{{{102}} | + | }}{{If|test={{{100|}}}|then={{Schematron Rule|{{{100}}}|{{{1}}}|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}|{{{{{{102}}|}}}}} |
− | }}{{If|test={{{105|}}}|then={{Schematron Rule|{{{105}}}|{{{1}}}|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}|{{{{{{107}} | + | }}{{If|test={{{105|}}}|then={{Schematron Rule|{{{105}}}|{{{1}}}|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}|{{{{{{107}}|}}}}} |
− | }}{{If|test={{{110|}}}|then={{Schematron Rule|{{{110}}}|{{{1}}}|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}|{{{{{{112}} | + | }}{{If|test={{{110|}}}|then={{Schematron Rule|{{{110}}}|{{{1}}}|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}|{{{{{{112}}|}}}}} |
− | }}{{If|test={{{115|}}}|then={{Schematron Rule|{{{115}}}|{{{1}}}|{{{2}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}|{{{{{{117}} | + | }}{{If|test={{{115|}}}|then={{Schematron Rule|{{{115}}}|{{{1}}}|{{{2}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}|{{{{{{117}}|}}}}} |
− | }}{{If|test={{{120|}}}|then={{Schematron Rule|{{{120}}}|{{{1}}}|{{{2}}}|{{{121}}}|{{{122}}}|{{{123}}}|{{{124}}}|{{{{{{122}} | + | }}{{If|test={{{120|}}}|then={{Schematron Rule|{{{120}}}|{{{1}}}|{{{2}}}|{{{121}}}|{{{122}}}|{{{123}}}|{{{124}}}|{{{{{{122}}|}}}}} |
− | }}{{If|test={{{125|}}}|then={{Schematron Rule|{{{125}}}|{{{1}}}|{{{2}}}|{{{126}}}|{{{127}}}|{{{128}}}|{{{129}}}|{{{{{{127}} | + | }}{{If|test={{{125|}}}|then={{Schematron Rule|{{{125}}}|{{{1}}}|{{{2}}}|{{{126}}}|{{{127}}}|{{{128}}}|{{{129}}}|{{{{{{127}}|}}}}} |
− | }}{{If|test={{{130|}}}|then={{Schematron Rule|{{{130}}}|{{{1}}}|{{{2}}}|{{{131}}}|{{{132}}}|{{{133}}}|{{{134}}}|{{{{{{132}} | + | }}{{If|test={{{130|}}}|then={{Schematron Rule|{{{130}}}|{{{1}}}|{{{2}}}|{{{131}}}|{{{132}}}|{{{133}}}|{{{134}}}|{{{{{{132}}|}}}}} |
− | }}{{If|test={{{135|}}}|then={{Schematron Rule|{{{135}}}|{{{1}}}|{{{2}}}|{{{136}}}|{{{137}}}|{{{138}}}|{{{139}}}|{{{{{{137}} | + | }}{{If|test={{{135|}}}|then={{Schematron Rule|{{{135}}}|{{{1}}}|{{{2}}}|{{{136}}}|{{{137}}}|{{{138}}}|{{{139}}}|{{{{{{137}}|}}}}} |
− | }}{{If|test={{{140|}}}|then={{Schematron Rule|{{{140}}}|{{{1}}}|{{{2}}}|{{{141}}}|{{{142}}}|{{{143}}}|{{{144}}}|{{{{{{142}} | + | }}{{If|test={{{140|}}}|then={{Schematron Rule|{{{140}}}|{{{1}}}|{{{2}}}|{{{141}}}|{{{142}}}|{{{143}}}|{{{144}}}|{{{{{{142}}|}}}}} |
− | }}{{If|test={{{145|}}}|then={{Schematron Rule|{{{145}}}|{{{1}}}|{{{2}}}|{{{146}}}|{{{147}}}|{{{148}}}|{{{149}}}|{{{{{{147}} | + | }}{{If|test={{{145|}}}|then={{Schematron Rule|{{{145}}}|{{{1}}}|{{{2}}}|{{{146}}}|{{{147}}}|{{{148}}}|{{{149}}}|{{{{{{147}}|}}}}} |
− | }}{{If|test={{{150|}}}|then={{Schematron Rule|{{{150}}}|{{{1}}}|{{{2}}}|{{{151}}}|{{{152}}}|{{{153}}}|{{{154}}}|{{{{{{152}} | + | }}{{If|test={{{150|}}}|then={{Schematron Rule|{{{150}}}|{{{1}}}|{{{2}}}|{{{151}}}|{{{152}}}|{{{153}}}|{{{154}}}|{{{{{{152}}|}}}}} |
− | }}{{If|test={{{155|}}}|then={{Schematron Rule|{{{155}}}|{{{1}}}|{{{2}}}|{{{156}}}|{{{157}}}|{{{158}}}|{{{159}}}|{{{{{{157}} | + | }}{{If|test={{{155|}}}|then={{Schematron Rule|{{{155}}}|{{{1}}}|{{{2}}}|{{{156}}}|{{{157}}}|{{{158}}}|{{{159}}}|{{{{{{157}}|}}}}} |
− | }}{{If|test={{{160|}}}|then={{Schematron Rule|{{{160}}}|{{{1}}}|{{{2}}}|{{{161}}}|{{{162}}}|{{{163}}}|{{{164}}}|{{{{{{162}} | + | }}{{If|test={{{160|}}}|then={{Schematron Rule|{{{160}}}|{{{1}}}|{{{2}}}|{{{161}}}|{{{162}}}|{{{163}}}|{{{164}}}|{{{{{{162}}|}}}}} |
− | }}{{If|test={{{165|}}}|then={{Schematron Rule|{{{165}}}|{{{1}}}|{{{2}}}|{{{166}}}|{{{167}}}|{{{168}}}|{{{169}}}|{{{{{{167}} | + | }}{{If|test={{{165|}}}|then={{Schematron Rule|{{{165}}}|{{{1}}}|{{{2}}}|{{{166}}}|{{{167}}}|{{{168}}}|{{{169}}}|{{{{{{167}}|}}}}} |
− | }}{{If|test={{{170|}}}|then={{Schematron Rule|{{{170}}}|{{{1}}}|{{{2}}}|{{{171}}}|{{{172}}}|{{{173}}}|{{{174}}}|{{{{{{172}} | + | }}{{If|test={{{170|}}}|then={{Schematron Rule|{{{170}}}|{{{1}}}|{{{2}}}|{{{171}}}|{{{172}}}|{{{173}}}|{{{174}}}|{{{{{{172}}|}}}}} |
− | }}{{If|test={{{175|}}}|then={{Schematron Rule|{{{175}}}|{{{1}}}|{{{2}}}|{{{176}}}|{{{177}}}|{{{178}}}|{{{179}}}|{{{{{{177}} | + | }}{{If|test={{{175|}}}|then={{Schematron Rule|{{{175}}}|{{{1}}}|{{{2}}}|{{{176}}}|{{{177}}}|{{{178}}}|{{{179}}}|{{{{{{177}}|}}}}} |
− | }}{{If|test={{{180|}}}|then={{Schematron Rule|{{{180}}}|{{{1}}}|{{{2}}}|{{{181}}}|{{{182}}}|{{{183}}}|{{{184}}}|{{{{{{182}} | + | }}{{If|test={{{180|}}}|then={{Schematron Rule|{{{180}}}|{{{1}}}|{{{2}}}|{{{181}}}|{{{182}}}|{{{183}}}|{{{184}}}|{{{{{{182}}|}}}}} |
− | }}{{If|test={{{185|}}}|then={{Schematron Rule|{{{185}}}|{{{1}}}|{{{2}}}|{{{186}}}|{{{187}}}|{{{188}}}|{{{189}}}|{{{{{{187}} | + | }}{{If|test={{{185|}}}|then={{Schematron Rule|{{{185}}}|{{{1}}}|{{{2}}}|{{{186}}}|{{{187}}}|{{{188}}}|{{{189}}}|{{{{{{187}}|}}}}} |
− | }}{{If|test={{{190|}}}|then={{Schematron Rule|{{{190}}}|{{{1}}}|{{{2}}}|{{{191}}}|{{{192}}}|{{{193}}}|{{{194}}}|{{{{{{192}} | + | }}{{If|test={{{190|}}}|then={{Schematron Rule|{{{190}}}|{{{1}}}|{{{2}}}|{{{191}}}|{{{192}}}|{{{193}}}|{{{194}}}|{{{{{{192}}|}}}}} |
− | }}{{If|test={{{195|}}}|then={{Schematron Rule|{{{195}}}|{{{1}}}|{{{2}}}|{{{196}}}|{{{197}}}|{{{198}}}|{{{199}}}|{{{{{{197}} | + | }}{{If|test={{{195|}}}|then={{Schematron Rule|{{{195}}}|{{{1}}}|{{{2}}}|{{{196}}}|{{{197}}}|{{{198}}}|{{{199}}}|{{{{{{197}}|}}}}} |
}}{{If|test={{{5|{{{LOINC|}}}}}}|then={{{Schematron|}}} | }}{{If|test={{{5|{{{LOINC|}}}}}}|then={{{Schematron|}}} | ||
</rule> | </rule> |
Revision as of 09:46, 2 October 2008
{{{1}}} Specification {{{2}}}
Conformance
CDA Release 2.0 documents that conform to the requirements of this content module shall indicate their conformance by the inclusion of the appropriate <templateId> elements in the header of the document. This is shown in the sample document below.
<ClinicalDocument xmlns='urn:hl7-org:v3'> <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/> <templateId root='{{{2}}}'/> <id root=' ' extension=' '/> <code code=' ' displayName=' ' codeSystem='2.16.840.1.113883.6.1' codeSystemName='LOINC'/> <title>{{{1}}}</title> <effectiveTime value='20240420012005'/> <confidentialityCode code='N' displayName='Normal' codeSystem='2.16.840.1.113883.5.25' codeSystemName='Confidentiality' /> <languageCode code='en-US'/> : <component><structuredBody> </structuredBody></component> </ClinicalDocument> |
<!-- Verify the document type code --> <assert test='cda:code[@code = "{{{LOINC}}}"]'> Error: The document type code of a {{{1}}} must be {{{LOINC}}} </assert> <assert test='cda: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>