PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.be.medication@1.1.1
    https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeMedicationDispense
description: Defines constraints and extensions on the Medication Dispense resource for a record of a dispensation in Belgium.
package_name: hl7.fhir.be.medication
derivation: constraint
name: BeMedicationDispense
type: MedicationDispense
elements:
  whenHandedOver: {mustSupport: true, index: 29}
  medicationCodeableConcept:
    type: CodeableConcept
    mustSupport: true
    choiceOf: medication
    index: 12
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, mustSupport: true, choiceOf: medication, index: 12}
          min: 0
          max: 1
  note: {mustSupport: true, index: 30}
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        recorded:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.recorded', index: 1}
          min: 0
          max: 1
        basedOnMedicationLine:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BasedOnMedicationLine', index: 2}
          min: 0
          max: 1
        beExtOffLabel:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeExtOffLabel', index: 3}
          min: 0
          max: 1
  dosageInstruction: {type: Dosage, mustSupport: true, index: 31}
  identifier:
    mustSupport: true
    index: 4
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        DGUID:
          match: {system: 'https://www.gfd-dpp.be/fhir/reference/dguid'}
          schema:
            mustSupport: true
            index: 5
            elements:
              type:
                elements:
                  coding:
                    elements:
                      code:
                        pattern: {type: Code, value: dguid}
                        index: 6
              system:
                pattern: {type: Uri, value: 'https://www.gfd-dpp.be/fhir/reference/dguid'}
                index: 7
            required: [system]
  context:
    short: The dispense session identifier, for example an identifier of a visit to a pharmacy
    mustSupport: true
    index: 17
    elements:
      identifier:
        mustSupport: true
        index: 18
        elements:
          type:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://www.gfd-dpp.be/fhir/reference/identifier_types'}
                    index: 19
                  code:
                    pattern: {type: Code, value: sguid}
                    index: 20
          system:
            pattern: {type: Uri, value: 'https://www.gfd-dpp.be/fhir/reference/sguid'}
            index: 21
  medicationReference:
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    type: Reference
    mustSupport: true
    choiceOf: medication
    index: 15
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
            type: Reference
            mustSupport: true
            choiceOf: medication
            index: 15
          min: 0
          max: 1
  quantity: {mustSupport: true, index: 28}
  authorizingPrescription:
    mustSupport: true
    index: 25
    elements:
      identifier: {mustSupport: true, index: 26}
      display: {mustSupport: true, index: 27}
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-patient']
    index: 16
  performer:
    mustSupport: true
    index: 22
    elements:
      function:
        elements:
          text:
            pattern: {type: String, value: dispenser}
            index: 23
      actor:
        type: Reference
        refers: ['https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-organization', 'https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitioner', 'https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitionerrole']
        index: 24
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 14
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            mustSupport: true
            choices: [medicationReference]
            index: 14
          min: 0
          max: 1
package_version: 1.1.1
extensions:
  recorded: {url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.recorded', min: 0, max: 1, type: Extension, mustSupport: true, index: 1}
  basedOnMedicationLine: {url: 'https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BasedOnMedicationLine', min: 0, max: 1, type: Extension, mustSupport: true, index: 2}
  beExtOffLabel: {url: 'https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeExtOffLabel', min: 0, max: 1, type: Extension, mustSupport: true, index: 3}
class: profile
kind: resource
url: https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeMedicationDispense
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 1.1.1
required: [whenHandedOver, subject, performer]