2.16.840.1.113883.10.22.4.31

From HL7 IPS
Revision as of 22:01, 7 July 2020 by ADbot (talk | contribs) (Automatic ADBot page (e0eb98d0b4f8a7f985c444bcd6103fbe05005210))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Comments on this page

Template IPSEntryInternalReference

This template is used to reference (point to) information contained in other entries within the same document.

Actual version

Id2.16.840.1.113883.10.22.4.31Effective Date2017‑05‑02
StatusKorange.png Under pre-publication reviewVersion LabelSTU1
NameIPSEntryInternalReferenceDisplay NameIPS Internal Reference
DescriptionThis template is used to reference (point to) information contained in other entries within the same document.
ClassificationCDA Entry Level Template
Open/ClosedOpen (other than defined elements are allowed)
RelationshipAdaptation: template 1.3.6.1.4.1.19376.1.5.3.1.4.4.1 IHE Internal Reference Entry (2013‑12‑20)
ref
IHE-PCC-
Example
Reference to an uncoded element
<act classCode="ACT" moodCode="cs">
  <templateId root="2.16.840.1.113883.10.22.4.31"/>  <id root="1.2.3.999" extension="__example only__"/>  <code nullFlavor="NA"/></act>
ItemDTCardConfDescriptionLabel
hl7:act
R(IPS...nce)
Treetree.png@classCode
cs1 … 1FACT
Treetree.png@moodCode
cs1 … 1RThe @moodCode of the reference SHALL match the @moodCode of the referenced element
 Variable letNamerefMoodCode 
 Value@moodCode 
 Variable letNamerefID 
 Valueconcat(hl7:id[1]/@root,'#',hl7:id[1]/@extension) 
 Variable letNamerefCode 
 Valueconcat(hl7:code[1]/@code,'#',hl7:code[1]/@codeSystem) 
 Variable letNamereffedObject 
 Value(ancestor::hl7:ClinicalDocument//*:id[concat(@root,'#',@extension)=$refID][not(preceding-sibling::hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1')]/parent::*)[1] 
 Schematron assertrole error 
 testnot(exists($reffedObject)) or $reffedObject[@moodCode=$refMoodCode] 
 MessageThe @moodCode of the reference SHALL match the @moodCode of the referenced element 
 Schematron assertrole error 
 testexists($reffedObject) 
 MessageThe root and extension attributes SHALL identify an element defined elsewhere in the same document. 
 Schematron assertrole error 
 testnot(exists($reffedObject)) or ($reffedObject[not(*:code/@code)] and hl7:code[@nullFlavor='NA']) or $reffedObject/*:code[concat(@code,'#',@codeSystem)=$refCode] 
 MessageThe code of the reference SHALL match the code of the referenced element 
Treetree.pnghl7:templateId
II1 … 1M(IPS...nce)
Treeblank.pngTreetree.png@root
uid1 … 1F2.16.840.1.113883.10.22.4.31
Treetree.pnghl7:id
II1 … 1RThis element shall be present. The root and extension attributes shall identify an element defined elsewhere in the same document.(IPS...nce)
Treetree.pnghl7:code
CD1 … 1RThis element shall be present. It shall be valued when the internal reference is to element that has a <code> element, and shall have the same attributes as the <code> element in the act it references. If the element it references does not have a <code> element, then the nullFlavor attribute should be set to "NA".(IPS...nce)
Treeblank.pngTreetree.png@nullFlavor
cs0 … 1FNA


List of all versions of this template