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
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Development Only ==
The PCC Wiki Content is used only for development of IHE PCC Content.  The Normative content of the PCC Technical Framework and the current supplements can be found at http://www.ihe.net/Technical_Framework/index.cfm#PCC
===== [[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}}}}}}}{{{4|}}}
{{Edit Button|{{{2|{{FULLPAGENAMEE}}}}}}}{{{4|}}}


{{If|test={{{formatCode|}}}|then=
====== Format Code ======
The XDSDocumentEntry format code for this content is '''{{{formatCode}}}'''
}}
{{If|test={{{Parent|}}}|then=
====== Parent Template ======
This document is an instance of the {{ILink|{{PAGENAME}}|{{{Parent}}}|{{{ParentName}}}}} template.
}}
{{If|test={{{LOINC|}}}|then=
====== LOINC Code ======
The LOINC code for this document is '''{{{LOINC}}}''' {{{LOINCName}}}
}}
{{If|test={{{Standards|}}}|then=
{{If|test={{{Standards|}}}|then=
====== Standards ======
====== Standards ======
Line 8: Line 23:
{{!}}}
{{!}}}
}}
}}
{{If|test={{{Index|}}}|then=
{{If|test={{{Index|}}}|then=
====== Data Element Index ======
====== Data Element Index ======
{{{Index}}}
{{{Index}}}
}}
}}{{If|test={{{Data|}}}|then={{Fixme|Data|Transition to new CDA Document template to support schematron}}}}


{{If|test={{{Data|{{{5|}}}}}}|then=
{{If|test={{{Data|{{{5|}}}}}}|then=
Line 42: Line 56:
{{If|test={{{90|}}}|then={{CDA Document Content|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}}} }}
{{If|test={{{90|}}}|then={{CDA Document Content|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}}} }}
{{If|test={{{95|}}}|then={{CDA Document Content|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}}} }}
{{If|test={{{95|}}}|then={{CDA Document Content|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}}} }}
{{If|test={{{100|}}}|then={{CDA Document Content|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}}} }}
{{If|test={{{105|}}}|then={{CDA Document Content|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}}} }}
{{If|test={{{105|}}}|then={{CDA Document Content|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}}} }}
{{If|test={{{110|}}}|then={{CDA Document Content|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}}} }}
{{If|test={{{110|}}}|then={{CDA Document Content|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}}} }}
Line 62: Line 77:
{{If|test={{{195|}}}|then={{CDA Document Content|{{{2}}}|{{{196}}}|{{{197}}}|{{{198}}}|{{{199}}}}} }}
{{If|test={{{195|}}}|then={{CDA Document Content|{{{2}}}|{{{196}}}|{{{197}}}|{{{198}}}|{{{199}}}}} }}
{{!}}}
{{!}}}
}}
}}<br/>
{{If|test={{{Note|}}}|then={{{Note}}}}}
======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.  {{If|test={{{Parent|}}}|then=A CDA Document may conform to more than one template.  This content module inherits from the {{ILink|{{PAGENAME}}|{{{Parent}}}|{{{ParentName|{{{Parent}}}}}}}} content module, and so must conform to the requirements of that template as well, thus all <templateId> elements shown in the example below shall be included.}}
{|
|-
|+'''Sample {{{1}}} Document'''
|
<ClinicalDocument xmlns='urn:hl7-org:v3'>
  <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/>
  {{If|test={{{Parent|}}}|then=<templateId root='{{{Parent}}}'/><br/> &nbsp;
}}<templateId root='{{{2}}}'/>
  <id root=' ' extension=' '/>
  &lt;code code='{{{LOINC| }}}' displayName='{{{LOINCName| }}}'
    codeSystem='2.16.840.1.113883.6.1' codeSystemName='LOINC'/>
  <title>{{{1}}}</title>
  <effectiveTime value='{{CURRENTYEAR}}{{CURRENTMONTH}}{{CURRENTDAY2}}012005'/>
  <confidentialityCode code='N' displayName='Normal'
    codeSystem='2.16.840.1.113883.5.25' codeSystemName='Confidentiality' />
  <languageCode code='en-US'/>   
      :
  <component><structuredBody>{{If|test={{{Subsections|}}}|then=<br/>    <component>
      ''Required and optional subsections as described above''
    </component>}}
    &nbsp;{{If|test={{Equal|{{{5}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}}}
}}{{If|test={{Equal|{{{10}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}}}
}}{{If|test={{Equal|{{{15}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}}}
}}{{If|test={{Equal|{{{20}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{21}}}|{{{22}}}|{{{23}}}|{{{24}}}}}
}}{{If|test={{Equal|{{{25}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{26}}}|{{{27}}}|{{{28}}}|{{{29}}}}}
}}{{If|test={{Equal|{{{30}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{31}}}|{{{32}}}|{{{33}}}|{{{34}}}}}
}}{{If|test={{Equal|{{{35}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{36}}}|{{{37}}}|{{{38}}}|{{{39}}}}}
}}{{If|test={{Equal|{{{40}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{41}}}|{{{42}}}|{{{43}}}|{{{44}}}}}
}}{{If|test={{Equal|{{{45}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{46}}}|{{{47}}}|{{{48}}}|{{{49}}}}}
}}{{If|test={{Equal|{{{50}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{51}}}|{{{52}}}|{{{53}}}|{{{54}}}}}
}}{{If|test={{Equal|{{{55}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{56}}}|{{{57}}}|{{{58}}}|{{{59}}}}}
}}{{If|test={{Equal|{{{60}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{61}}}|{{{62}}}|{{{63}}}|{{{64}}}}}
}}{{If|test={{Equal|{{{65}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{66}}}|{{{67}}}|{{{68}}}|{{{69}}}}}
}}{{If|test={{Equal|{{{70}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{71}}}|{{{72}}}|{{{73}}}|{{{74}}}}}
}}{{If|test={{Equal|{{{75}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{76}}}|{{{77}}}|{{{78}}}|{{{79}}}}}
}}{{If|test={{Equal|{{{80}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{81}}}|{{{82}}}|{{{83}}}|{{{84}}}}}
}}{{If|test={{Equal|{{{85}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{86}}}|{{{87}}}|{{{88}}}|{{{89}}}}}
}}{{If|test={{Equal|{{{90}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}}}
}}{{If|test={{Equal|{{{95}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}}}
}}{{If|test={{Equal|{{{100}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}}}
}}{{If|test={{Equal|{{{105}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}}}
}}{{If|test={{Equal|{{{110}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}}}
}}{{If|test={{Equal|{{{115}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}}}
}}{{If|test={{Equal|{{{120}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{121}}}|{{{122}}}|{{{123}}}|{{{124}}}}}
}}{{If|test={{Equal|{{{125}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{126}}}|{{{127}}}|{{{128}}}|{{{129}}}}}
}}{{If|test={{Equal|{{{130}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{131}}}|{{{132}}}|{{{133}}}|{{{134}}}}}
}}{{If|test={{Equal|{{{135}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{136}}}|{{{137}}}|{{{138}}}|{{{139}}}}}
}}{{If|test={{Equal|{{{140}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{141}}}|{{{142}}}|{{{143}}}|{{{144}}}}}
}}{{If|test={{Equal|{{{145}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{146}}}|{{{147}}}|{{{148}}}|{{{149}}}}}
}}{{If|test={{Equal|{{{150}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{151}}}|{{{152}}}|{{{153}}}|{{{154}}}}}
}}{{If|test={{Equal|{{{155}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{156}}}|{{{157}}}|{{{158}}}|{{{159}}}}}
}}{{If|test={{Equal|{{{160}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{161}}}|{{{162}}}|{{{163}}}|{{{164}}}}}
}}{{If|test={{Equal|{{{165}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{166}}}|{{{167}}}|{{{168}}}|{{{169}}}}}
}}{{If|test={{Equal|{{{170}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{171}}}|{{{172}}}|{{{173}}}|{{{174}}}}}
}}{{If|test={{Equal|{{{175}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{176}}}|{{{177}}}|{{{178}}}|{{{179}}}}}
}}{{If|test={{Equal|{{{180}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{181}}}|{{{182}}}|{{{183}}}|{{{184}}}}}
}}{{If|test={{Equal|{{{185}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{186}}}|{{{187}}}|{{{188}}}|{{{189}}}}}
}}{{If|test={{Equal|{{{190}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{191}}}|{{{192}}}|{{{193}}}|{{{194}}}}}
}}{{If|test={{Equal|{{{195}}}|Section}}|then={{Subsection XML|{{{2}}}|{{{196}}}|{{{197}}}|{{{198}}}|{{{199}}}}}
}}  &nbsp;
  </structuredBody></component>
</ClinicalDocument>
|}


{{If|test={{{5|{{{LOINC|}}}}}}|then=
{{If|test={{{5|{{{LOINC|}}}}}}|then=
====== Schematron ======
====== Schematron ======
<div style='font-family: monospace; line-height: 0.9; border: 1px solid black;'>
<pattern name='Template_{{{2}}}'>
<pattern name='Template_{{{2}}}'><br/>
  <rule context='*[cda:templateId/@root="{{{2}}}"]'>
&nbsp;&nbsp;<rule context='*[templateId/@root="{{{2}}}"]'><br/>
    &lt;!-- 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 --><br/>
    <assert test='../cda:ClinicalDocument'>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='../cda:ClinicalDocument'><br/>
      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.<br/>
    </assert>{{If|test={{{Parent|}}}|then=&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>{{If|test={{{Parent|}}}|then=
    &lt;!-- Verify that the parent templateId is also present. -->
&nbsp;&nbsp;&nbsp;&nbsp;<!-- Verify that the parent templateId is also present. --><br/>
    <assert test='cda:templateId[@root="{{{Parent}}}"]'>
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='templateId[@root="{{{Parent}}}"]'>
      Error: The parent template identifier for {{{1}}} is not present.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The parent template identifier for medical summary is not present.<br/>
    </assert>}}}}{{If|test={{{LOINC|x}}}|then=&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>
    &lt;!-- Verify the document type code -->
}}}}{{If|test={{{LOINC|}}}|then=
    <assert test='cda:code[@code = "{{{LOINC}}}"]'>
&nbsp;&nbsp;&nbsp;&nbsp;<!-- Verify the document type code --><br/>
      Error: The document type code of a {{{1}}} must be {{{LOINC}}}
&nbsp;&nbsp;&nbsp;&nbsp;<assert test='code[@code = "{{{LOINC}}}"]'><br/>
    </assert>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: The document type code of a {{{2}}} must be {{{LOINC}}}<br/>
    <assert test='cda:code[@codeSystem = "2.16.840.1.113883.6.1"]'>
&nbsp;&nbsp;&nbsp;&nbsp;</assert><br/>
      Error: The document type code must come from the LOINC code  
&nbsp;&nbsp;<assert test='code[@codeSystem = "2.16.840.1.113883.6.1"]'><br/>
      system (2.16.840.1.113883.6.1).
&nbsp;&nbsp;&nbsp;&nbsp;Error: The document type code must come from the LOINC code <br/>
    </assert>}}{{If|test={{{5|}}}|then={{Schematron Rule|{{{5}}}|{{{1}}}|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|Document}}
&nbsp;&nbsp;&nbsp;&nbsp;system (2.16.840.1.113883.6.1).<br/>
}}{{If|test={{{10|}}}|then={{Schematron Rule|{{{10}}}|{{{1}}}|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}|Document}}
&nbsp;&nbsp;</assert><br/>
}}{{If|test={{{15|}}}|then={{Schematron Rule|{{{15}}}|{{{1}}}|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}|Document}}
}}{{If|test={{{5|}}}|then={{Schematron Rule|{{{5}}}|{{{1}}}|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}}}
}}{{If|test={{{20|}}}|then={{Schematron Rule|{{{20}}}|{{{1}}}|{{{2}}}|{{{21}}}|{{{22}}}|{{{23}}}|{{{24}}}|Document}}
}}{{If|test={{{10|}}}|then={{Schematron Rule|{{{10}}}|{{{1}}}|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}}}
}}{{If|test={{{25|}}}|then={{Schematron Rule|{{{25}}}|{{{1}}}|{{{2}}}|{{{26}}}|{{{27}}}|{{{28}}}|{{{29}}}|Document}}
}}{{If|test={{{15|}}}|then={{Schematron Rule|{{{15}}}|{{{1}}}|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}}}
}}{{If|test={{{30|}}}|then={{Schematron Rule|{{{30}}}|{{{1}}}|{{{2}}}|{{{31}}}|{{{32}}}|{{{33}}}|{{{34}}}|Document}}
}}{{If|test={{{20|}}}|then={{Schematron Rule|{{{20}}}|{{{1}}}|{{{2}}}|{{{21}}}|{{{22}}}|{{{23}}}|{{{24}}}}}
 
}}{{If|test={{{25|}}}|then={{Schematron Rule|{{{25}}}|{{{1}}}|{{{2}}}|{{{26}}}|{{{27}}}|{{{28}}}|{{{29}}}}}  
}}{{If|test={{{35|}}}|then={{Schematron Rule|{{{35}}}|{{{1}}}|{{{2}}}|{{{36}}}|{{{37}}}|{{{38}}}|{{{39}}}|Document}}
}}{{If|test={{{30|}}}|then={{Schematron Rule|{{{30}}}|{{{1}}}|{{{2}}}|{{{31}}}|{{{32}}}|{{{33}}}|{{{34}}}}}  
}}{{If|test={{{40|}}}|then={{Schematron Rule|{{{40}}}|{{{1}}}|{{{2}}}|{{{41}}}|{{{42}}}|{{{43}}}|{{{44}}}|Document}}
}}{{If|test={{{35|}}}|then={{Schematron Rule|{{{35}}}|{{{1}}}|{{{2}}}|{{{36}}}|{{{37}}}|{{{38}}}|{{{39}}}}}  
}}{{If|test={{{45|}}}|then={{Schematron Rule|{{{45}}}|{{{1}}}|{{{2}}}|{{{46}}}|{{{47}}}|{{{48}}}|{{{49}}}|Document}}
}}{{If|test={{{40|}}}|then={{Schematron Rule|{{{40}}}|{{{1}}}|{{{2}}}|{{{41}}}|{{{42}}}|{{{43}}}|{{{44}}}}}  
}}{{If|test={{{50|}}}|then={{Schematron Rule|{{{50}}}|{{{1}}}|{{{2}}}|{{{51}}}|{{{52}}}|{{{53}}}|{{{54}}}|Document}}
}}{{If|test={{{45|}}}|then={{Schematron Rule|{{{45}}}|{{{1}}}|{{{2}}}|{{{46}}}|{{{47}}}|{{{48}}}|{{{49}}}}}  
 
}}{{If|test={{{50|}}}|then={{Schematron Rule|{{{50}}}|{{{1}}}|{{{2}}}|{{{51}}}|{{{52}}}|{{{53}}}|{{{54}}}}}  
}}{{If|test={{{55|}}}|then={{Schematron Rule|{{{55}}}|{{{1}}}|{{{2}}}|{{{56}}}|{{{57}}}|{{{58}}}|{{{59}}}|Document}}
}}{{If|test={{{55|}}}|then={{Schematron Rule|{{{55}}}|{{{1}}}|{{{2}}}|{{{56}}}|{{{57}}}|{{{58}}}|{{{59}}}}}  
}}{{If|test={{{60|}}}|then={{Schematron Rule|{{{60}}}|{{{1}}}|{{{2}}}|{{{61}}}|{{{62}}}|{{{63}}}|{{{64}}}|Document}}
}}{{If|test={{{60|}}}|then={{Schematron Rule|{{{60}}}|{{{1}}}|{{{2}}}|{{{61}}}|{{{62}}}|{{{63}}}|{{{64}}}}}  
}}{{If|test={{{65|}}}|then={{Schematron Rule|{{{65}}}|{{{1}}}|{{{2}}}|{{{66}}}|{{{67}}}|{{{68}}}|{{{69}}}|Document}}
}}{{If|test={{{65|}}}|then={{Schematron Rule|{{{65}}}|{{{1}}}|{{{2}}}|{{{66}}}|{{{67}}}|{{{68}}}|{{{69}}}}}  
}}{{If|test={{{70|}}}|then={{Schematron Rule|{{{70}}}|{{{1}}}|{{{2}}}|{{{71}}}|{{{72}}}|{{{73}}}|{{{74}}}|Document}}
}}{{If|test={{{70|}}}|then={{Schematron Rule|{{{70}}}|{{{1}}}|{{{2}}}|{{{71}}}|{{{72}}}|{{{73}}}|{{{74}}}}}  
}}{{If|test={{{75|}}}|then={{Schematron Rule|{{{75}}}|{{{1}}}|{{{2}}}|{{{76}}}|{{{77}}}|{{{78}}}|{{{79}}}|Document}}
}}{{If|test={{{75|}}}|then={{Schematron Rule|{{{75}}}|{{{1}}}|{{{2}}}|{{{76}}}|{{{77}}}|{{{78}}}|{{{79}}}}}  
}}{{If|test={{{80|}}}|then={{Schematron Rule|{{{80}}}|{{{1}}}|{{{2}}}|{{{81}}}|{{{82}}}|{{{83}}}|{{{84}}}|Document}}
}}{{If|test={{{80|}}}|then={{Schematron Rule|{{{80}}}|{{{1}}}|{{{2}}}|{{{81}}}|{{{82}}}|{{{83}}}|{{{84}}}}}  
}}{{If|test={{{85|}}}|then={{Schematron Rule|{{{85}}}|{{{1}}}|{{{2}}}|{{{86}}}|{{{87}}}|{{{88}}}|{{{89}}}|Document}}
}}{{If|test={{{85|}}}|then={{Schematron Rule|{{{85}}}|{{{1}}}|{{{2}}}|{{{86}}}|{{{87}}}|{{{88}}}|{{{89}}}}}  
}}{{If|test={{{90|}}}|then={{Schematron Rule|{{{90}}}|{{{1}}}|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}|Document}}
}}{{If|test={{{90|}}}|then={{Schematron Rule|{{{90}}}|{{{1}}}|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}}}  
}}{{If|test={{{95|}}}|then={{Schematron Rule|{{{95}}}|{{{1}}}|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}|Document}}
}}{{If|test={{{95|}}}|then={{Schematron Rule|{{{95}}}|{{{1}}}|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}}}  
}}{{If|test={{{100|}}}|then={{Schematron Rule|{{{100}}}|{{{1}}}|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}|Document}}  
}}{{If|test={{{100|}}}|then={{Schematron Rule|{{{100}}}|{{{1}}}|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}}}  
}}{{If|test={{{105|}}}|then={{Schematron Rule|{{{105}}}|{{{1}}}|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}|Document}}
}}{{If|test={{{105|}}}|then={{Schematron Rule|{{{105}}}|{{{1}}}|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}}}  
}}{{If|test={{{110|}}}|then={{Schematron Rule|{{{110}}}|{{{1}}}|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}|Document}}
}}{{If|test={{{110|}}}|then={{Schematron Rule|{{{110}}}|{{{1}}}|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}}}  
}}{{If|test={{{115|}}}|then={{Schematron Rule|{{{115}}}|{{{1}}}|{{{2}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}|Document}}
}}{{If|test={{{115|}}}|then={{Schematron Rule|{{{115}}}|{{{1}}}|{{{2}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}}}  
}}{{If|test={{{120|}}}|then={{Schematron Rule|{{{120}}}|{{{1}}}|{{{2}}}|{{{121}}}|{{{122}}}|{{{123}}}|{{{124}}}|Document}}  
}}{{If|test={{{120|}}}|then={{Schematron Rule|{{{120}}}|{{{1}}}|{{{2}}}|{{{121}}}|{{{122}}}|{{{123}}}|{{{124}}}}}  
}}{{If|test={{{125|}}}|then={{Schematron Rule|{{{125}}}|{{{1}}}|{{{2}}}|{{{126}}}|{{{127}}}|{{{128}}}|{{{129}}}|Document}}
}}{{If|test={{{125|}}}|then={{Schematron Rule|{{{125}}}|{{{1}}}|{{{2}}}|{{{126}}}|{{{127}}}|{{{128}}}|{{{129}}}}}  
}}{{If|test={{{130|}}}|then={{Schematron Rule|{{{130}}}|{{{1}}}|{{{2}}}|{{{131}}}|{{{132}}}|{{{133}}}|{{{134}}}|Document}}
}}{{If|test={{{130|}}}|then={{Schematron Rule|{{{130}}}|{{{1}}}|{{{2}}}|{{{131}}}|{{{132}}}|{{{133}}}|{{{134}}}}}  
}}{{If|test={{{135|}}}|then={{Schematron Rule|{{{135}}}|{{{1}}}|{{{2}}}|{{{136}}}|{{{137}}}|{{{138}}}|{{{139}}}|Document}}
}}{{If|test={{{135|}}}|then={{Schematron Rule|{{{135}}}|{{{1}}}|{{{2}}}|{{{136}}}|{{{137}}}|{{{138}}}|{{{139}}}}}  
}}{{If|test={{{140|}}}|then={{Schematron Rule|{{{140}}}|{{{1}}}|{{{2}}}|{{{141}}}|{{{142}}}|{{{143}}}|{{{144}}}|Document}}
}}{{If|test={{{140|}}}|then={{Schematron Rule|{{{140}}}|{{{1}}}|{{{2}}}|{{{141}}}|{{{142}}}|{{{143}}}|{{{144}}}}}  
}}{{If|test={{{145|}}}|then={{Schematron Rule|{{{145}}}|{{{1}}}|{{{2}}}|{{{146}}}|{{{147}}}|{{{148}}}|{{{149}}}|Document}}
}}{{If|test={{{145|}}}|then={{Schematron Rule|{{{145}}}|{{{1}}}|{{{2}}}|{{{146}}}|{{{147}}}|{{{148}}}|{{{149}}}}}  
}}{{If|test={{{150|}}}|then={{Schematron Rule|{{{150}}}|{{{1}}}|{{{2}}}|{{{151}}}|{{{152}}}|{{{153}}}|{{{154}}}|Document}}
}}{{If|test={{{150|}}}|then={{Schematron Rule|{{{150}}}|{{{1}}}|{{{2}}}|{{{151}}}|{{{152}}}|{{{153}}}|{{{154}}}}}  
}}{{If|test={{{155|}}}|then={{Schematron Rule|{{{155}}}|{{{1}}}|{{{2}}}|{{{156}}}|{{{157}}}|{{{158}}}|{{{159}}}|Document}}
}}{{If|test={{{155|}}}|then={{Schematron Rule|{{{155}}}|{{{1}}}|{{{2}}}|{{{156}}}|{{{157}}}|{{{158}}}|{{{159}}}}}  
}}{{If|test={{{160|}}}|then={{Schematron Rule|{{{160}}}|{{{1}}}|{{{2}}}|{{{161}}}|{{{162}}}|{{{163}}}|{{{164}}}|Document}}
}}{{If|test={{{160|}}}|then={{Schematron Rule|{{{160}}}|{{{1}}}|{{{2}}}|{{{161}}}|{{{162}}}|{{{163}}}|{{{164}}}}}  
}}{{If|test={{{165|}}}|then={{Schematron Rule|{{{165}}}|{{{1}}}|{{{2}}}|{{{166}}}|{{{167}}}|{{{168}}}|{{{169}}}|Document}}
}}{{If|test={{{165|}}}|then={{Schematron Rule|{{{165}}}|{{{1}}}|{{{2}}}|{{{166}}}|{{{167}}}|{{{168}}}|{{{169}}}}}  
}}{{If|test={{{170|}}}|then={{Schematron Rule|{{{170}}}|{{{1}}}|{{{2}}}|{{{171}}}|{{{172}}}|{{{173}}}|{{{174}}}|Document}}
}}{{If|test={{{170|}}}|then={{Schematron Rule|{{{170}}}|{{{1}}}|{{{2}}}|{{{171}}}|{{{172}}}|{{{173}}}|{{{174}}}}}  
}}{{If|test={{{175|}}}|then={{Schematron Rule|{{{175}}}|{{{1}}}|{{{2}}}|{{{176}}}|{{{177}}}|{{{178}}}|{{{179}}}|Document}}
}}{{If|test={{{175|}}}|then={{Schematron Rule|{{{175}}}|{{{1}}}|{{{2}}}|{{{176}}}|{{{177}}}|{{{178}}}|{{{179}}}}}  
}}{{If|test={{{180|}}}|then={{Schematron Rule|{{{180}}}|{{{1}}}|{{{2}}}|{{{181}}}|{{{182}}}|{{{183}}}|{{{184}}}|Document}}
}}{{If|test={{{180|}}}|then={{Schematron Rule|{{{180}}}|{{{1}}}|{{{2}}}|{{{181}}}|{{{182}}}|{{{183}}}|{{{184}}}}}  
}}{{If|test={{{185|}}}|then={{Schematron Rule|{{{185}}}|{{{1}}}|{{{2}}}|{{{186}}}|{{{187}}}|{{{188}}}|{{{189}}}|Document}}
}}{{If|test={{{185|}}}|then={{Schematron Rule|{{{185}}}|{{{1}}}|{{{2}}}|{{{186}}}|{{{187}}}|{{{188}}}|{{{189}}}}}  
}}{{If|test={{{190|}}}|then={{Schematron Rule|{{{190}}}|{{{1}}}|{{{2}}}|{{{191}}}|{{{192}}}|{{{193}}}|{{{194}}}|Document}}
}}{{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}}}|Document}}
}}{{If|test={{{195|}}}|then={{Schematron Rule|{{{195}}}|{{{1}}}|{{{2}}}|{{{196}}}|{{{197}}}|{{{198}}}|{{{199}}}}}  
}}{{If|test={{{5|{{{LOINC|}}}}}}|then={{{Schematron|}}}&nbsp;
}}{{If|test={{{5|{{{LOINC|}}}}}}|then=
  </rule>
&nbsp;&nbsp;</rule><br/>
</pattern>
</pattern>
</div>
}}
}}


Line 138: Line 217:
}}]]
}}]]
</noinclude>
</noinclude>
<includeonly>[[Category:CDA Document Templates]]</includeonly>
<includeonly>[[Category:CDA Document Templates|{{{1}}}]]</includeonly>

Latest revision as of 09:19, 30 September 2009

Development Only

The PCC Wiki Content is used only for development of IHE PCC Content. The Normative content of the PCC Technical Framework and the current supplements can be found at http://www.ihe.net/Technical_Framework/index.cfm#PCC

{{{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.

Sample {{{1}}} Document
<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='20260407012005'/>
  <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>