PackagesCanonicalsLogsProblems
    Packages
    rs/de.gematik.epa.medication@0.0.3
    https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense
description: Defines the medication dispense resource for the Medication Service in the ePA system.
package_name: rs/de.gematik.epa.medication
derivation: constraint
name: EPAMedicationDispense
type: MedicationDispense
elements:
  whenHandedOver: {mustSupport: true, index: 15}
  substitution: {mustSupport: true, index: 17}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 8}
    required: [reference]
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        RxPrescriptionProcessIdentifier:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
            index: 1
            elements:
              value:
                mustSupport: true
                choices: []
                index: 3
  status:
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa-medication/ValueSet/epa-medication-dispense-vs'}
    index: 4
  dosageInstruction: {mustSupport: true, index: 16}
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication']
    index: 7
  authorizingPrescription:
    type: Reference
    mustSupport: true
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request']
    index: 13
    elements:
      reference: {mustSupport: true, index: 14}
    required: [reference]
  subject:
    mustSupport: true
    index: 9
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 10}
    required: [identifier]
  performer:
    mustSupport: true
    index: 11
    elements:
      actor:
        type: Reference
        refers: ['https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory']
        index: 12
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 6
package_version: 0.0.3
extensions:
  RxPrescriptionProcessIdentifier:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
    type: Extension
    mustSupport: true
    index: 1
    elements:
      value:
        mustSupport: true
        choices: []
        index: 3
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 1.0.0
required: [authorizingPrescription, extension, performer, subject, whenHandedOver]