description: 'This observation represents a simple observation indicating whether a person has any advance directive documents. When documents are available, a system can nest the needed references to the advance directive documents inside this Advance Directive Existence Observation.\n\n#### Templates Used\nAlthough open templates may contain any valid CDA content, the following templates are specifically called out by this template:\n\n**Optional EntryRelationships**: [AdvanceDirectiveObservation](StructureDefinition-AdvanceDirectiveObservation.html)' package_name: hl7.cda.us.ccda derivation: constraint name: AdvanceDirectiveExistenceObservation type: http://hl7.org/cda/stds/core/StructureDefinition/Observation elements: entryRelationship: index: 20 elements: typeCode: pattern: {type: code, value: REFR} type: code index: 21 observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', index: 22} required: [observation] value: type: http://hl7.org/cda/stds/core/StructureDefinition/CD binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1267.16'} index: 17 classCode: pattern: {type: code, value: OBS} type: code index: 4 author: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Author', index: 18} id: {index: 6} code: short: Advance directive/living will completed index: 8 elements: code: pattern: {type: code, value: 45473-6} type: code index: 9 codeSystem: short: LOINC pattern: {type: string, value: 2.16.840.1.113883.6.1} type: string index: 10 required: [code, codeSystem] moodCode: pattern: {type: code, value: EVN} type: code index: 5 effectiveTime: short: 'Note: This template represents a "snapshot in time" observation. As a result, the effectiveTime is constrained to just a time stamp.' constraint: value-only: {human: Interval fields SHALL NOT be present, source: 'http://hl7.org/cda/us/ccda/StructureDefinition/AdvanceDirectiveExistenceObservation', severity: error, expression: (low | high | width | center).empty()} index: 15 elements: value: {short: value should be used instead of low/high, index: 16} templateId: index: 0 slicing: rules: open discriminator: - {path: root, type: value} - {path: extension, type: value} min: 1 slices: advance-directive-exist-obs: match: {root: 2.16.840.1.113883.10.20.22.4.513, extension: '2025-05-01'} schema: _required: true index: 1 elements: root: pattern: {type: string, value: 2.16.840.1.113883.10.20.22.4.513} type: string index: 2 extension: pattern: {type: string, value: '2025-05-01'} type: string index: 3 required: [extension, root] extensions: {} sdtcCategory: binding: {strength: preferred, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.69.4'} index: 7 statusCode: index: 13 elements: code: pattern: {type: code, value: completed} type: code index: 14 required: [code] informant: {short: 'MAY contain zero or one [0..1] informant', index: 19} text: short: SHOULD reference the portion of section narrative text corresponding to this entry index: 11 elements: reference: constraint: value-starts-octothorpe: {human: 'If reference/@value is present, it SHALL begin with a ''#'' and SHALL point to its corresponding narrative', source: 'http://hl7.org/cda/us/ccda/StructureDefinition/AdvanceDirectiveExistenceObservation', severity: error, expression: value.exists() implies value.startsWith('#')} index: 12 package_version: 4.0.0 class: logical kind: logical url: http://hl7.org/cda/us/ccda/StructureDefinition/AdvanceDirectiveExistenceObservation base: http://hl7.org/cda/stds/core/StructureDefinition/Observation version: 4.0.0 required: [author, effectiveTime, id, statusCode, templateId, text, value]