PackagesCanonicalsLogsProblems
    Packages
    healthdata.be.r4.cbb@0.16.0-beta
    https://fhir.healthdata.be/StructureDefinition/HdBe-AdvanceDirective
description: An AdvanceDirective is a verbal or written description of the patient’s wishes with regard to future medical action or end of their life. An advanceDirective is mainly used for situations in which the patient is no longer able to speak about these decisions with their healthcare professional.
package_name: healthdata.be.r4.cbb
derivation: constraint
name: HdBeAdvanceDirective
type: Consent
elements:
  patient:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'https://fhir.healthdata.be/StructureDefinition/HdBe-Patient']
    index: 10
  category:
    index: 8
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: null
      slices:
        advanceDirectiveCode:
          match:
            coding:
            - {code: acd, system: 'http://terminology.hl7.org/CodeSystem/consentcategorycodes'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: acd, system: 'http://terminology.hl7.org/CodeSystem/consentcategorycodes'}
            _required: true
            index: 9
          min: 1
          max: 1
  provision:
    elements:
      actor:
        index: 19
        slicing:
          rules: open
          discriminator:
          - {path: role, type: value}
          min: null
          slices:
            representative:
              match:
                role:
                  coding:
                  - {code: RESPRSN, system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
              schema:
                index: 20
                elements:
                  role:
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {code: RESPRSN, system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
                    index: 21
                  reference:
                    type: Reference
                    short: Representative
                    refers: ['http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://fhir.healthdata.be/StructureDefinition/HdBe-ContactPerson']
                    index: 22
      code:
        short: LivingWillType
        binding: {strength: extensible, valueSet: 'https://fhir.healthdata.be/ValueSet/TypeOfLivingWill'}
        index: 23
  sourceAttachment:
    type: Attachment
    choiceOf: source
    index: 16
    slicing:
      slices:
        sourceAttachment:
          match: {}
          schema: {type: Attachment, choiceOf: source, index: 16}
  source:
    choices: []
    index: 13
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        sourceAttachment:
          match: {}
          schema:
            choices: [sourceAttachment]
            index: 15
  scope:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: adr, system: 'http://terminology.hl7.org/CodeSystem/consentscope'}
    index: 7
  policy:
    elements:
      uri: {index: 18}
  dateTime: {short: LivingWillDate, index: 11}
  extension:
    type: Extension
    url: https://fhir.healthdata.be/StructureDefinition/ext-AdvanceDirective.Disorder
    index: 0
    slicing:
      slices:
        disorder:
          match: {}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-AdvanceDirective.Disorder
            index: 0
            elements:
              value:
                choices: []
                index: 2
        comment:
          match: {}
          schema:
            type: Extension
            url: https://fhir.healthdata.be/StructureDefinition/ext-Comment
            index: 3
            elements:
              value:
                short: Comment
                choices: []
                index: 5
  status: {index: 6}
  source[x]:
    elements:
      data: {short: LivingWillDocument, index: 17}
package_version: 0.16.0-beta
extensions:
  disorder:
    url: https://fhir.healthdata.be/StructureDefinition/ext-AdvanceDirective.Disorder
    type: Extension
    index: 0
    elements:
      value:
        choices: []
        index: 2
  comment:
    url: https://fhir.healthdata.be/StructureDefinition/ext-Comment
    type: Extension
    index: 3
    elements:
      value:
        short: Comment
        choices: []
        index: 5
class: profile
kind: resource
url: https://fhir.healthdata.be/StructureDefinition/HdBe-AdvanceDirective
base: http://hl7.org/fhir/StructureDefinition/Consent
version: null