PackagesCanonicalsLogsProblems
    Packages
    nictiz.fhir.nl.stu3.zib2015@1.0.0
    http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective
description: 'AdvanceDirective (formerly know as LivingWill) as defined by the Dutch Health and Care Information models (Dutch: Zorginformatiebouwsteen or ZIB) version 1.0.\r\nA living will is a verbal or written description of the patient’s wishes with regard to future medical action or end of their life. A living will is mainly used for situations in which the patient is no longer able to speak about these decisions with their healthcare provider.'
package_name: nictiz.fhir.nl.stu3.zib2015
derivation: constraint
name: ZIB-AdvanceDirective
type: Consent
elements:
  patient:
    type: Reference
    refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-patient']
    index: 9
  category:
    array: true
    min: 2
    index: 3
    slicing:
      rules: open
      discriminator:
      - {path: coding.code, type: value}
      min: 2
      slices:
        livingWill:
          match:
            coding: {code: '11341000146107'}
          schema:
            short: Living will and advance directive record
            _required: true
            index: 4
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 5
                  code:
                    pattern: {type: Code, value: '11341000146107'}
                    index: 6
                  display:
                    pattern: {type: String, value: Living will and advance directive record (record artifact)}
                    index: 7
        typeOfLivingWill:
          match:
            coding: {code: null}
          schema: {short: TypeOfLivingWill, _required: true, index: 8}
          min: 1
          max: 1
  except:
    elements:
      actor:
        elements:
          reference:
            type: Reference
            refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-organization', 'http://fhir.nl/fhir/StructureDefinition/nl-core-patient', 'http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner', 'http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson', 'http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://nictiz.nl/fhir/StructureDefinition/zib-MedicalAidProduct']
            index: 16
  organization:
    type: Reference
    refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-organization']
    index: 13
  source:
    short: LivingWillDocument
    choices: []
    index: 15
  dateTime: {short: LivingWillDate, index: 10}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        disorder:
          match: {url: null}
          schema: {type: Extension, short: Disorder, url: h, index: 1}
        explanation:
          match: {url: null}
          schema: {type: Extension, short: Explanation, url: h, index: 2}
          max: 1
  consentingParty:
    short: Representative
    refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson']
    type: Reference
    index: 11
  actor:
    elements:
      reference:
        type: Reference
        refers: ['http://fhir.nl/fhir/StructureDefinition/nl-core-organization', 'http://fhir.nl/fhir/StructureDefinition/nl-core-patient', 'http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner', 'http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson', 'http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://nictiz.nl/fhir/StructureDefinition/zib-MedicalAidProduct']
        index: 12
package_version: 1.0.0
extensions:
  disorder: {url: h, type: Extension, short: Disorder, index: 1}
  explanation: {url: h, max: 1, type: Extension, short: Explanation, index: 2}
class: profile
kind: resource
url: http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective
base: http://hl7.org/fhir/StructureDefinition/Consent
version: '1.0'
required: [dateTime]