Template:CDA Document: Difference between revisions

From IHE Wiki
Jump to navigation Jump to search
Kboone (talk | contribs)
Kboone (talk | contribs)
mNo edit summary
 
(73 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id='{{{2}}}'>
== Development Only ==
===== Document Specification =====
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
{{{3|}}}
 
{|class='wikitable' style='border-collapse: collapse; border: 1px solid black; width: 100%'
===== [[Image:{{{3|draft}}}.gif]] <span id='{{{2}}}'>{{{1}}} Specification</span> {{{2}}} =====
|+{{{1}}} {{{2}}}
{{Edit Button|{{{2|{{FULLPAGENAMEE}}}}}}}{{{4|}}}
|-style='background-color: lightgrey; border: 1px solid black;'
 
! style='border: 1px solid black; width: 70%'| Data Element Name  
{{If|test={{{formatCode|}}}|then=
! style='border: 1px solid black; width: 10%'| Opt  
====== Format Code ======
! style='border: 1px solid black; width: 20%'| Template ID
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=
====== Standards ======
{{{!}}
{{{Standards}}}
{{!}}}
}}
{{If|test={{{Index|}}}|then=
====== Data Element Index ======
{{{Index}}}
}}{{If|test={{{Data|}}}|then={{Fixme|Data|Transition to new CDA Document template to support schematron}}}}
 
{{If|test={{{Data|{{{5|}}}}}}|then=
====== Specification ======
{{{!}}class='wikitable' style='border-collapse: collapse; border: 1px solid black; width: 100%'
{{!}}-style='background-color: lightgrey; border: 1px solid black;'
! style='border: 1px solid black; width: 70%'{{!}} Data Element Name  
! style='border: 1px solid black; width: 10%'{{!}} Opt  
! style='border: 1px solid black; width: 20%'{{!}} Template ID
{{!}}-
{{{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={{{65|}}}|then={{CDA Document Content|{{{2}}}|{{{66}}}|{{{67}}}|{{{68}}}|{{{69}}}}} }}
{{If|test={{{70|}}}|then={{CDA Document Content|{{{2}}}|{{{71}}}|{{{72}}}|{{{73}}}|{{{74}}}}} }}
{{If|test={{{75|}}}|then={{CDA Document Content|{{{2}}}|{{{76}}}|{{{77}}}|{{{78}}}|{{{79}}}}} }}
{{If|test={{{80|}}}|then={{CDA Document Content|{{{2}}}|{{{81}}}|{{{82}}}|{{{83}}}|{{{84}}}}} }}
{{If|test={{{85|}}}|then={{CDA Document Content|{{{2}}}|{{{86}}}|{{{87}}}|{{{88}}}|{{{89}}}}} }}
{{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={{{100|}}}|then={{CDA Document Content|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}}} }}
{{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={{{115|}}}|then={{CDA Document Content|{{{2}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}}} }}
{{If|test={{{120|}}}|then={{CDA Document Content|{{{2}}}|{{{121}}}|{{{122}}}|{{{123}}}|{{{124}}}}} }}
{{If|test={{{125|}}}|then={{CDA Document Content|{{{2}}}|{{{126}}}|{{{127}}}|{{{128}}}|{{{129}}}}} }}
{{If|test={{{130|}}}|then={{CDA Document Content|{{{2}}}|{{{131}}}|{{{132}}}|{{{133}}}|{{{134}}}}} }}
{{If|test={{{135|}}}|then={{CDA Document Content|{{{2}}}|{{{136}}}|{{{137}}}|{{{138}}}|{{{139}}}}} }}
{{If|test={{{140|}}}|then={{CDA Document Content|{{{2}}}|{{{141}}}|{{{142}}}|{{{143}}}|{{{144}}}}} }}
{{If|test={{{145|}}}|then={{CDA Document Content|{{{2}}}|{{{146}}}|{{{147}}}|{{{148}}}|{{{149}}}}} }}
{{If|test={{{150|}}}|then={{CDA Document Content|{{{2}}}|{{{151}}}|{{{152}}}|{{{153}}}|{{{154}}}}} }}
{{If|test={{{155|}}}|then={{CDA Document Content|{{{2}}}|{{{156}}}|{{{157}}}|{{{158}}}|{{{159}}}}} }}
{{If|test={{{160|}}}|then={{CDA Document Content|{{{2}}}|{{{161}}}|{{{162}}}|{{{163}}}|{{{164}}}}} }}
{{If|test={{{165|}}}|then={{CDA Document Content|{{{2}}}|{{{166}}}|{{{167}}}|{{{168}}}|{{{169}}}}} }}
{{If|test={{{170|}}}|then={{CDA Document Content|{{{2}}}|{{{171}}}|{{{172}}}|{{{173}}}|{{{174}}}}} }}
{{If|test={{{175|}}}|then={{CDA Document Content|{{{2}}}|{{{176}}}|{{{177}}}|{{{178}}}|{{{179}}}}} }}
{{If|test={{{180|}}}|then={{CDA Document Content|{{{2}}}|{{{181}}}|{{{182}}}|{{{183}}}|{{{184}}}}} }}
{{If|test={{{185|}}}|then={{CDA Document Content|{{{2}}}|{{{186}}}|{{{187}}}|{{{188}}}|{{{189}}}}} }}
{{If|test={{{190|}}}|then={{CDA Document Content|{{{2}}}|{{{191}}}|{{{192}}}|{{{193}}}|{{{194}}}}} }}
{{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.}}
{|
|-
|-
{{{Data|}}}
|+'''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>
|}
|}
</div>
 
{{If|test={{{5|{{{LOINC|}}}}}}|then=
====== Schematron ======
<pattern name='Template_{{{2}}}'>
  <rule context='*[cda:templateId/@root="{{{2}}}"]'>
    &lt;!-- 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=&nbsp;
    &lt;!-- Verify that the parent templateId is also present. -->
    <assert test='cda:templateId[@root="{{{Parent}}}"]'>
      Error: The parent template identifier for {{{1}}} is not present.
    </assert>}}}}{{If|test={{{LOINC|x}}}|then=&nbsp;
    &lt;!-- 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>}}{{If|test={{{5|}}}|then={{Schematron Rule|{{{5}}}|{{{1}}}|{{{2}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|Document}}
}}{{If|test={{{10|}}}|then={{Schematron Rule|{{{10}}}|{{{1}}}|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}|Document}}
}}{{If|test={{{15|}}}|then={{Schematron Rule|{{{15}}}|{{{1}}}|{{{2}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}|Document}}
}}{{If|test={{{20|}}}|then={{Schematron Rule|{{{20}}}|{{{1}}}|{{{2}}}|{{{21}}}|{{{22}}}|{{{23}}}|{{{24}}}|Document}}
}}{{If|test={{{25|}}}|then={{Schematron Rule|{{{25}}}|{{{1}}}|{{{2}}}|{{{26}}}|{{{27}}}|{{{28}}}|{{{29}}}|Document}}
}}{{If|test={{{30|}}}|then={{Schematron Rule|{{{30}}}|{{{1}}}|{{{2}}}|{{{31}}}|{{{32}}}|{{{33}}}|{{{34}}}|Document}}
 
}}{{If|test={{{35|}}}|then={{Schematron Rule|{{{35}}}|{{{1}}}|{{{2}}}|{{{36}}}|{{{37}}}|{{{38}}}|{{{39}}}|Document}}
}}{{If|test={{{40|}}}|then={{Schematron Rule|{{{40}}}|{{{1}}}|{{{2}}}|{{{41}}}|{{{42}}}|{{{43}}}|{{{44}}}|Document}}
}}{{If|test={{{45|}}}|then={{Schematron Rule|{{{45}}}|{{{1}}}|{{{2}}}|{{{46}}}|{{{47}}}|{{{48}}}|{{{49}}}|Document}}
}}{{If|test={{{50|}}}|then={{Schematron Rule|{{{50}}}|{{{1}}}|{{{2}}}|{{{51}}}|{{{52}}}|{{{53}}}|{{{54}}}|Document}}
 
}}{{If|test={{{55|}}}|then={{Schematron Rule|{{{55}}}|{{{1}}}|{{{2}}}|{{{56}}}|{{{57}}}|{{{58}}}|{{{59}}}|Document}}
}}{{If|test={{{60|}}}|then={{Schematron Rule|{{{60}}}|{{{1}}}|{{{2}}}|{{{61}}}|{{{62}}}|{{{63}}}|{{{64}}}|Document}}
}}{{If|test={{{65|}}}|then={{Schematron Rule|{{{65}}}|{{{1}}}|{{{2}}}|{{{66}}}|{{{67}}}|{{{68}}}|{{{69}}}|Document}}
}}{{If|test={{{70|}}}|then={{Schematron Rule|{{{70}}}|{{{1}}}|{{{2}}}|{{{71}}}|{{{72}}}|{{{73}}}|{{{74}}}|Document}}
}}{{If|test={{{75|}}}|then={{Schematron Rule|{{{75}}}|{{{1}}}|{{{2}}}|{{{76}}}|{{{77}}}|{{{78}}}|{{{79}}}|Document}}
}}{{If|test={{{80|}}}|then={{Schematron Rule|{{{80}}}|{{{1}}}|{{{2}}}|{{{81}}}|{{{82}}}|{{{83}}}|{{{84}}}|Document}}
}}{{If|test={{{85|}}}|then={{Schematron Rule|{{{85}}}|{{{1}}}|{{{2}}}|{{{86}}}|{{{87}}}|{{{88}}}|{{{89}}}|Document}}
}}{{If|test={{{90|}}}|then={{Schematron Rule|{{{90}}}|{{{1}}}|{{{2}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}|Document}}
}}{{If|test={{{95|}}}|then={{Schematron Rule|{{{95}}}|{{{1}}}|{{{2}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}|Document}}
}}{{If|test={{{100|}}}|then={{Schematron Rule|{{{100}}}|{{{1}}}|{{{2}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}|Document}}
}}{{If|test={{{105|}}}|then={{Schematron Rule|{{{105}}}|{{{1}}}|{{{2}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}|Document}}
}}{{If|test={{{110|}}}|then={{Schematron Rule|{{{110}}}|{{{1}}}|{{{2}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}|Document}}
}}{{If|test={{{115|}}}|then={{Schematron Rule|{{{115}}}|{{{1}}}|{{{2}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}|Document}}
}}{{If|test={{{120|}}}|then={{Schematron Rule|{{{120}}}|{{{1}}}|{{{2}}}|{{{121}}}|{{{122}}}|{{{123}}}|{{{124}}}|Document}}
}}{{If|test={{{125|}}}|then={{Schematron Rule|{{{125}}}|{{{1}}}|{{{2}}}|{{{126}}}|{{{127}}}|{{{128}}}|{{{129}}}|Document}}
}}{{If|test={{{130|}}}|then={{Schematron Rule|{{{130}}}|{{{1}}}|{{{2}}}|{{{131}}}|{{{132}}}|{{{133}}}|{{{134}}}|Document}}
}}{{If|test={{{135|}}}|then={{Schematron Rule|{{{135}}}|{{{1}}}|{{{2}}}|{{{136}}}|{{{137}}}|{{{138}}}|{{{139}}}|Document}}
}}{{If|test={{{140|}}}|then={{Schematron Rule|{{{140}}}|{{{1}}}|{{{2}}}|{{{141}}}|{{{142}}}|{{{143}}}|{{{144}}}|Document}}
}}{{If|test={{{145|}}}|then={{Schematron Rule|{{{145}}}|{{{1}}}|{{{2}}}|{{{146}}}|{{{147}}}|{{{148}}}|{{{149}}}|Document}}
}}{{If|test={{{150|}}}|then={{Schematron Rule|{{{150}}}|{{{1}}}|{{{2}}}|{{{151}}}|{{{152}}}|{{{153}}}|{{{154}}}|Document}}
}}{{If|test={{{155|}}}|then={{Schematron Rule|{{{155}}}|{{{1}}}|{{{2}}}|{{{156}}}|{{{157}}}|{{{158}}}|{{{159}}}|Document}}
}}{{If|test={{{160|}}}|then={{Schematron Rule|{{{160}}}|{{{1}}}|{{{2}}}|{{{161}}}|{{{162}}}|{{{163}}}|{{{164}}}|Document}}
}}{{If|test={{{165|}}}|then={{Schematron Rule|{{{165}}}|{{{1}}}|{{{2}}}|{{{166}}}|{{{167}}}|{{{168}}}|{{{169}}}|Document}}
}}{{If|test={{{170|}}}|then={{Schematron Rule|{{{170}}}|{{{1}}}|{{{2}}}|{{{171}}}|{{{172}}}|{{{173}}}|{{{174}}}|Document}}
}}{{If|test={{{175|}}}|then={{Schematron Rule|{{{175}}}|{{{1}}}|{{{2}}}|{{{176}}}|{{{177}}}|{{{178}}}|{{{179}}}|Document}}
}}{{If|test={{{180|}}}|then={{Schematron Rule|{{{180}}}|{{{1}}}|{{{2}}}|{{{181}}}|{{{182}}}|{{{183}}}|{{{184}}}|Document}}
}}{{If|test={{{185|}}}|then={{Schematron Rule|{{{185}}}|{{{1}}}|{{{2}}}|{{{186}}}|{{{187}}}|{{{188}}}|{{{189}}}|Document}}
}}{{If|test={{{190|}}}|then={{Schematron Rule|{{{190}}}|{{{1}}}|{{{2}}}|{{{191}}}|{{{192}}}|{{{193}}}|{{{194}}}|Document}}
}}{{If|test={{{195|}}}|then={{Schematron Rule|{{{195}}}|{{{1}}}|{{{2}}}|{{{196}}}|{{{197}}}|{{{198}}}|{{{199}}}|Document}}
}}{{If|test={{{5|{{{LOINC|}}}}}}|then={{{Schematron|}}}&nbsp;
  </rule>
</pattern>
}}
 
<noinclude>[[Category:Templates]]
[[Category:Status: {{If|test={{Equal|{{{3}}}|Comment}}|then=Public Comment|else=
  {{If|test={{Equal|{{{3}}}|Final}}|then=Final Text|else=
    {{If|test={{Equal|{{{3}}}|Trial}}|then=Trial Implementation|else=Draft}}
  }}
}}]]
</noinclude>
<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>