Back To Index  <<  Back To Templates

ref Template  Original Text Reference

Id 2.16.756.5.30.1.1.10.9.49
ref
hl7chcda-
Effective Date 2018‑04‑18
Status active Active Version Label 2017
Name cdach_other_OriginalTextElementWithReferenceToNarrativeText Display Name Original Text Reference
Description
Reusable template wherever a original text reference to the corresponding text in the human readable part (narrative text) is used in a CDA-CH V2 document. CDA-CH V2 derivatives, i.e. Swiss exchange formats MAY use this template by either reference or specialisation.
Context Pathname
Label CDA‑CH V2
Classification Template type not specified
Open/Closed Open (other than defined elements are allowed)
Used by / Uses
Used by 0 transactions and 6 templates, Uses 0 templates
Used by as Name Version
2.16.756.5.30.1.1.10.9.12 Include active Assigned Entity Compilation with id (2017) 2018‑04‑18
2.16.756.5.30.1.1.10.2.5 link active Legal Authenticator (2017) 2018‑04‑18
2.16.756.5.30.1.127.10.1.3 link draft Laborbefund Transplantationsprozesss 2017‑08‑14
2.16.756.5.30.1.127.10.1.3 link retired Laborbefund Transplantationsprozesss 2016‑07‑02
2.16.756.5.30.1.1.10.2.6 link active Authenticator (2017) 2018‑04‑18
2.16.756.5.30.1.1.10.2.7 link active Data Enterer (2017) 2018‑04‑18
Example
Example
<originalText>
  demo  <reference value="#nartext1"/></originalText>
Item DT Card Conf Description Label
hl7:originalText
ED 0 … 1 C CDA‑CH V2
hl7:reference
TEL 1 … 1 M The reference to the corresponding text in the human readable part must be specified by reference to content[@ID]: reference[@value='#xxx'] CDA‑CH V2
@value
1 … 1 R Reference to the narrative part of the section in the format '#xxx', where xxx is the ID of the corresponding element.
  Schematron assert role red error  
  test starts-with(@value,'#')  
  Message The @value attribute content MUST conform to the format '#xxx', where xxx is the ID of the corresponding <content/> element.  
  Variable let Name idvalue  
  Value substring-after(@value,'#')  
  Schematron assert role red error  
  test ancestor::hl7:structuredBody//*[@ID=$idvalue]  
  Message No narrative text found for this reference (no content element within this document has an ID that corresponds to '<value-of select="$idvalue"/>').  
  Schematron assert role red error  
  test parent::*/text()=ancestor::hl7:structuredBody//*[@ID=$idvalue]/text()  
  Message The originalText content MUST be identical to the narrative text for this reference.