Back To Index  <<  Back To Templates

draft Template  Advance Directive Observation

Id 2.16.756.5.30.1.1.10.4.113 Effective Date 2017‑09‑19 21:34:59
Status draft Draft Version Label 2018
Name cdachsmcp_entry_AdvanceDirectiveObservation Display Name Advance Directive Observation
Description An advance directive observation is a simple observation that uses a specific vocabulary, and inherits constraints from CCD.
Context Parent nodes of template element with id 2.16.756.5.30.1.1.10.4.113
Label CDA‑CH‑SMCP
Classification CDA Entry Level Template
Open/Closed Open (other than defined elements are allowed)
Associated with
Associated with 4 concepts
Id Name Data Set
cdachsmcp-dataelement-30 draft Field 1.19 (Directives anticipées) draft DMST v3.1 - Etat de Vaud 7.8 updated
cdachsmcp-dataelement-228 draft Field 1.19.3 (Directives anticipées déposées auprès de) draft DMST v3.1 - Etat de Vaud 7.8 updated
cdachsmcp-dataelement-227 draft Field 1.19.1 (Code Directives anticipées) draft DMST v3.1 - Etat de Vaud 7.8 updated
cdachsmcp-dataelement-243 draft Field 1.19.2 (Précision Directives anticipées) draft DMST v3.1 - Etat de Vaud 7.8 updated
Used by / Uses
Used by 0 transactions and 2 templates, Uses 1 template
Used by as Name Version
2.16.756.5.30.1.1.10.3.63 Containment draft Advance Directives Section - coded (2018) 2017‑09‑13 20:10:42
2.16.756.5.30.1.1.10.1.11 link draft Social-medical care plan V2 (2018) 2017‑08‑24 18:00:03
Uses as Name Version
2.16.756.5.30.1.1.10.9.49 Include active Original Text Reference (2017) DYNAMIC
Relationship Specialization: template 2.16.756.5.30.1.1.10.4.78 (DYNAMIC)
Specialization: template 1.3.6.1.4.1.19376.1.5.3.1.4.13.7 (2016‑09‑29 12:09:40)
Specialization: template 1.3.6.1.4.1.19376.1.5.3.1.4.13 (2016‑09‑26 08:43:40)
Specialization: template 2.16.840.1.113883.10.12.303 (2005‑09‑07)
Specialization: template 2.16.840.1.113883.10.20.1.17 (2016‑09‑26 08:43:40)
Example
Example
<observation classCode="OBS" moodCode="EVN">
  <templateId root="2.16.756.5.30.1.1.10.4.113"/>  <templateId root="2.16.756.5.30.1.1.10.4.78"/>  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13.7"/>  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13"/>  <templateId root="2.16.840.1.113883.10.20.1.17"/>  <id root="CB8A52C6-DE2A-41E2-B91C-AA2283D8F438"/>  <code code="304251008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Resuscitation"/>  <text>
    <reference value="#your_content_id"/>  </text>
  <statusCode code="completed"/>  <effectiveTime value="20130423"/>  <value xsi:type="BL" value="true"/>  <value xsi:type="CD" code="a" codeSystem="2.16.756.5.30.1.112.3.1.201812.5" codeSystemName="accessories" displayName="attached"/>  <reference typeCode="REFR">
    <templateId root="2.16.840.1.113883.10.20.1.36"/>    <externalDocument classCode="DOC" moodCode="EVN">
      <id root="68C4ADCC-5BFA-4C58-B722-A344035DD397"/>      <text>
        <reference value="http://www.medshare.net/fileadmin/user_upload/public_downloads/patientconsent.pdf"/>      </text>
    </externalDocument>
  </reference>
</observation>
Item DT Card Conf Description Label
hl7:observation
CDA-dotsSMCP
 
target
cdachsmcp-dataelement-30 draft Field 1.19 (Directives anticipées) draft DMST v3.1 - Etat de Vaud 7.8 updated
@classCode
cs 1 … 1 F OBS
@moodCode
cs 1 … 1 F EVN
hl7:templateId
II 1 … 1 M CDA-dotsSMCP
@root
uid 1 … 1 F 2.16.756.5.30.1.1.10.4.113
hl7:templateId
II 1 … 1 M CDA-dotsSMCP
@root
uid 1 … 1 F 2.16.756.5.30.1.1.10.4.78
hl7:templateId
II 1 … 1 M CDA-dotsSMCP
@root
uid 1 … 1 F 1.3.6.1.4.1.19376.1.5.3.1.4.13.7
hl7:templateId
II 1 … 1 M CDA-dotsSMCP
@root
uid 1 … 1 F 1.3.6.1.4.1.19376.1.5.3.1.4.13
hl7:templateId
II 1 … 1 M CDA-dotsSMCP
@root
uid 1 … 1 F 2.16.840.1.113883.10.20.1.17
hl7:id
II 1 … 1 M CDA-dotsSMCP
hl7:code
CD 1 … 1 R CDA-dotsSMCP
@codeSystem
oid 0 … 1 F 2.16.840.1.113883.6.96
hl7:text
ED 1 … 1 M CDA-dotsSMCP
hl7:statusCode
CS 1 … 1 M CDA-dotsSMCP
@code
CONF 1 … 1 F completed
hl7:effectiveTime
IVL_TS 1 … 1 M CDA-dotsSMCP
Choice 1 … 3 Elements to choose from:
  • hl7:value[not(@nullFlavor)][(local-name-from-QName(resolve-QName(@xsi:type,.))='BL' and namespace-uri-from-QName(resolve-QName(@xsi:type,.))='urn:hl7-org:v3')]
  • hl7:value[@codeSystem = '2.16.756.5.30.1.112.3.1.201812.5' or concat(@code, @codeSystem) = doc('include/voc-2.16.756.5.30.1.1.1.1.3.6.3.11.15-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]
  • hl7:value[(local-name-from-QName(resolve-QName(@xsi:type,.))='ST' and namespace-uri-from-QName(resolve-QName(@xsi:type,.))='urn:hl7-org:v3')]
hl7:value
BL 1 … 1 M CDA-dotsSMCP
 
target
cdachsmcp-dataelement-227 draft Field 1.19.1 (Code Directives anticipées) draft DMST v3.1 - Etat de Vaud 7.8 updated
@xsi:type
1 … 1 F BL
@value
bl 1 … 1 R
  Schematron assert role red error  
  test not(@value='true') or (parent::hl7:observation/hl7:value[@xsi:type='CD' and @codeSystem='2.16.756.5.30.1.112.3.1.201812.5'])  
  Message Advance directive existence must be precised using another value element containing a code of code system 2.16.756.5.30.1.112.3.1.201812.5.  
hl7:value
CD 0 … 1 C CDA-dotsSMCP
 
target
cdachsmcp-dataelement-243 draft Field 1.19.2 (Précision Directives anticipées) draft DMST v3.1 - Etat de Vaud 7.8 updated
@xsi:type
1 … 1 F CD
@code
cs 1 … 1 R
@codeSystem
oid 1 … 1 F 2.16.756.5.30.1.112.3.1.201812.5
@codeSystemName
st 1 … 1 F dmst-prec3
@displayName
st 1 … 1 R
  CONF
The value of @code shall be drawn from value set 2.16.756.5.30.1.1.1.1.3.6.3.11.15 dmst-prec3 (DYNAMIC)
Included 0 … 1 C from 2.16.756.5.30.1.1.10.9.49 Original Text Reference (DYNAMIC)
The human-readable text MUST be generated automatically from the structured information of this element. The text element MUST contain the reference to the corresponding text in the human readable part, ONLY.
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.  
  Schematron assert role red error  
  test not(@code=('a')) or (parent::hl7:observation/hl7:reference[hl7:templateId/@root='2.16.840.1.113883.10.20.1.36'])  
  Message When declaring an advance directive as attached, a reference to an externaL document ist required.  
  Schematron assert role red error  
  test not(@code=('d')) or (parent::hl7:observation/hl7:value[@xsi:type='ST']/text())  
  Message When declaring an advance directive as deposited, another value of type ST containing the precision for the deposit place is required.  
hl7:value
ST 0 … 1 C CDA-dotsSMCP
 
target
cdachsmcp-dataelement-228 draft Field 1.19.3 (Directives anticipées déposées auprès de) draft DMST v3.1 - Etat de Vaud 7.8 updated
@xsi:type
1 … 1 F ST
hl7:reference
0 … * R CDA-dotsSMCP
@typeCode
cs 1 … 1 F REFR
hl7:templateId
II 1 … 1 M CDA-dotsSMCP
@root
uid 1 … 1 F 2.16.840.1.113883.10.20.1.36
hl7:externalDocument
1 … 1 R CDA-dotsSMCP
@moodCode
cs 0 … 1 F EVN
@classCode
cs 0 … 1 F DOC
hl7:id
II 1 … 1 M CDA-dotsSMCP
hl7:text
ED 0 … 1 CDA-dotsSMCP