Template

Show index

Template XeH Internal Reference 2021‑05‑14 11:05:58

Id2.16.840.1.113883.3.1937.99.61.67.10.36Effective Date2021‑05‑14 11:05:58
Statusdraft DraftVersion Label0.1
NameXeHEntryInternalReferenceDisplay NameXeH 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)
Used by / Uses
Used by 0 transactions and 1 template, Uses 0 templates
Used by as NameVersion
2.16.840.1.113883.3.1937.99.61.67.10.23Containmentdraft XeH Alerts Section (0.1)2021‑04‑20 09:33:53
RelationshipAdaptation: template 2.16.840.1.113883.10.22.4.31 IPS Internal Reference (2017‑05‑02)
ref
hl7ips-

Adaptation: 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
RXeHEdotsence
@classCode
cs1 … 1FACT
@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 assertrolered error 
 testnot(exists($reffedObject)) or $reffedObject[@moodCode=$refMoodCode] 
 MessageThe @moodCode of the reference SHALL match the @moodCode of the referenced element 
 Schematron assertrolered error 
 testexists($reffedObject) 
 MessageThe root and extension attributes SHALL identify an element defined elsewhere in the same document. 
 Schematron assertrolered 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 
hl7:templateId
II1 … 1MXeHEdotsence
@root
uid1 … 1F2.16.840.1.113883.3.1937.99.61.67.10.36
hl7:id
II1 … 1RThis element shall be present. The root and extension attributes shall identify an element defined elsewhere in the same document.XeHEdotsence
hl7:code
CD0 … 1RThis element shall be present. It shall be valued when the internal reference is to element that has a element, and shall have the same attributes as the element in the act it references. If the element it references does not have a element, then the nullFlavor attribute should be set to "NA".XeHEdotsence
@nullFlavor
cs0 … 1FNA