description: 'This observation represents a simple observation indicating whether a person has an advance directive document. When available, a system can nest the references to the advance directive documents inside this observation. ' package_name: rs/hl7.cda.us.ccda derivation: constraint name: AdvanceDirectiveExistenceObservation type: http://hl7.org/cda/stds/core/StructureDefinition/Observation elements: entryRelationship: index: 19 elements: observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', index: 20} 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: 16 classCode: pattern: {type: code, value: OBS} type: code index: 4 author: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Author', index: 17} id: {index: 6} code: short: Advance directive/living will completed index: 7 elements: code: pattern: {type: code, value: 45473-6} type: code index: 8 codeSystem: short: LOINC pattern: {type: string, value: 2.16.840.1.113883.6.1} type: string index: 9 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: 14 elements: value: {short: value should be used instead of low/high, index: 15} 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: {} statusCode: index: 12 elements: code: pattern: {type: code, value: completed} type: code index: 13 required: [code] informant: {short: 'MAY contain zero or one [0..1] informant', index: 18} text: short: SHOULD reference the portion of section narrative text corresponding to this entry index: 10 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: 11 package_version: 4.0.0-ballot 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-ballot required: [author, effectiveTime, id, statusCode, templateId, text, value]