description: This profile defines constraints that represent the information needed to register an advance directive information document on a FHIR server. package_name: hl7.fhir.us.pacio-adi derivation: constraint name: ADIDocumentReference type: DocumentReference elements: category: binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/us/core/ValueSet/us-core-documentreference-category|8.0.0'} index: 12 date: {index: 14} docStatus: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/pacio-adi/ValueSet/ADICompositionStatusVS'} index: 2 content: elements: attachment: elements: contentType: {index: 17} creation: {mustSupport: true, index: 18} required: [contentType, creation] type: elements: coding: index: 3 slicing: rules: open description: Slicing based on document type codes to support C-CDA and FHIR PACP formats discriminator: - {path: $this, type: pattern} min: null slices: cdaDocument: match: {code: 'urn:hl7-org:sdwg:pacp-structuredBody:1.3', system: 'http://terminology.hl7.org/CodeSystem/v3-HL7DocumentFormatCodes'} schema: short: CDA Document Type Coding mustSupport: true pattern: type: Coding value: {code: 'urn:hl7-org:sdwg:pacp-structuredBody:1.3', system: 'http://terminology.hl7.org/CodeSystem/v3-HL7DocumentFormatCodes'} type: Coding index: 4 elements: system: {index: 5} code: {index: 6} display: pattern: {type: string, value: PACP Structured Body CDA Document} type: string index: 7 required: [code, system] fhirADIBundle: match: {code: 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-Bundle', system: 'urn:ietf:rfc:3986'} schema: short: FHIR PACP Bundle Type Coding mustSupport: true pattern: type: Coding value: {code: 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-Bundle', system: 'urn:ietf:rfc:3986'} type: Coding index: 8 elements: system: {index: 9} code: {index: 10} display: pattern: {type: string, value: 'pacp-structuredBody:1.3'} type: string index: 11 required: [code, system] author: type: Reference refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole'] index: 15 extension: type: Extension mustSupport: true url: http://hl7.org/fhir/us/pacio-adi/StructureDefinition/adi-document-revoke-status index: 0 slicing: slices: DocumentRevokeStatus: match: {} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/adi-document-revoke-status', index: 0} min: 0 max: 1 DocumentReferenceVersionNumber: match: {} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/adi-docVersionNumber-extension', index: 1} min: 0 max: 1 custodian: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization'] index: 16 context: mustSupport: true index: 19 elements: encounter: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter'] index: 20 period: {mustSupport: true, index: 21} subject: type: Reference refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient'] index: 13 package_version: 2.0.0-ballot extensions: DocumentRevokeStatus: {url: 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/adi-document-revoke-status', min: 0, max: 1, type: Extension, mustSupport: true, index: 0} DocumentReferenceVersionNumber: {url: 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/adi-docVersionNumber-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 1} class: profile kind: resource url: http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-DocumentReference base: http://hl7.org/fhir/us/core/StructureDefinition/us-core-adi-documentreference version: 2.0.0-ballot required: [date]