Back To Index  <<  Back To Templates

draft Template  XeH Internal Reference

Id 2.16.840.1.113883.2.51.10.18 Effective Date 2021‑09‑21 17:43:00
Status draft Draft Version Label 0.1
Name XeHEntryInternalReference Display Name XeH Internal Reference
Description This template is used to reference (point to) information contained in other entries within the same document.
Classification CDA Entry Level Template
Open/Closed Open (other than defined elements are allowed)
Used by / Uses
Used by 0 transactions and 12 templates, Uses 0 templates
Used by as Name Version
2.16.840.1.113883.2.51.10.17 Containment draft XeH Alerts Section (0.1) 2021‑09‑10 15:24:33
2.16.840.1.113883.2.51.10.13 link draft XeH RD Patient Summary (0.1) 2021‑09‑10 14:50:49
2.16.840.1.113883.2.51.10.37 Containment draft XeH Care Team Act 2021‑10‑18 16:15:10
2.16.840.1.113883.2.51.10.25 link draft XeH Problem Entry (0.1) 2021‑09‑24 09:49:58
2.16.840.1.113883.2.51.10.24 link draft XeH Problem Concern Entry (0.1) 2021‑09‑24 09:38:56
2.16.840.1.113883.2.51.10.23 link draft XeH Problems Section (0.1) 2021‑09‑22 17:29:31
2.16.840.1.113883.2.51.10.12 link draft XeH Hospital Discharge Report (0.1) 2021‑09‑10 14:49:32
2.16.840.1.113883.2.51.10.57 link draft XeH History of Past Illness Section 2022‑02‑18 09:12:34
2.16.840.1.113883.2.51.10.80 link draft XeH Complications Section 2022‑06‑24 11:20:43
2.16.840.1.113883.2.51.10.63 link draft XeH Imaging Procedure Description (DICOM-20150324) 2022‑03‑21 16:08:00
2.16.840.1.113883.2.51.10.2 link draft XeH Diagnostic Imaging Report (0.1) 2021‑06‑21 14:23:14
2.16.840.1.113883.2.51.10.39 link draft XeH Care Team Section 2021‑10‑19 09:35:03
Relationship Adaptation: 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 Internal Reference (2013‑12‑20)
ref
epsos-
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>
Item DT Card Conf Description Label
hl7:act
R (XeHdotsnce)
@classCode
cs 1 … 1 F ACT
@moodCode
cs 1 … 1 R The @moodCode of the reference SHALL match the @moodCode of the referenced element
  Variable let Name refMoodCode  
  Value @moodCode  
  Variable let Name refID  
  Value concat(hl7:id[1]/@root,'#',hl7:id[1]/@extension)  
  Variable let Name refCode  
  Value concat(hl7:code[1]/@code,'#',hl7:code[1]/@codeSystem)  
  Variable let Name reffedObject  
  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 assert role red error  
  test not(exists($reffedObject)) or $reffedObject[@moodCode=$refMoodCode]  
  Message The @moodCode of the reference SHALL match the @moodCode of the referenced element  
  Schematron assert role red error  
  test exists($reffedObject)  
  Message The root and extension attributes SHALL identify an element defined elsewhere in the same document.  
  Schematron assert role red error  
  test not(exists($reffedObject)) or ($reffedObject[not(*:code/@code)] and hl7:code[@nullFlavor='NA']) or $reffedObject/*:code[concat(@code,'#',@codeSystem)=$refCode]  
  Message The code of the reference SHALL match the code of the referenced element  
Choice 1 … 1
At least one template id indicating that this instance is compliant with template is included. 
Elements to choose from:
  • hl7:templateId[@root = '2.16.840.1.113883.2.51.10.18']
  • hl7:templateId
hl7:templateId
II 0 … 1 R This template id
(XeHdotsnce)
@root
uid 1 … 1 F 2.16.840.1.113883.2.51.10.18
hl7:templateId
II 0 … 1 R Template id of a template conformant with this template
(XeHdotsnce)
hl7:templateId
II 0 … * Other template ids  (XeHdotsnce)
hl7:id
II 1 … 1 R This element shall be present. The root and extension attributes shall identify an element defined elsewhere in the same document. (XeHdotsnce)
hl7:code
CD 0 … 1 R This 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". (XeHdotsnce)
@nullFlavor
cs 0 … 1 F NA