PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erezept.eu@0.9.1-beta
    https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense
description: Handles information about the redeem of the prescription and the submited medication from the EU.
package_name: de.gematik.erezept.eu
derivation: constraint
name: GEM_ERPEU_PR_MedicationDispense
type: MedicationDispense
elements:
  category:
    short: Missing value indicates a prescription dispense.
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa-medication/ValueSet/epa-medication-dispense-category-vs'}
    mustSupport: true
    index: 8
  whenHandedOver:
    constraint:
      erp-eu-abgabeDatumsFormat: {human: 'Wert muss ein Datum in der Form: YYYY-MM-DD sein.', source: 'https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense', severity: error, expression: toString().length()=10}
    mustSupport: true
    index: 21
  whenPrepared:
    constraint:
      erp-eu-abgabeDatumsFormat: {human: 'Wert muss ein Datum in der Form: YYYY-MM-DD sein.', source: 'https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense', severity: error, expression: toString().length()=10}
    index: 20
  meta:
    index: 0
    elements:
      profile:
        pattern: {type: Canonical, value: 'https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense|1.5'}
        index: 1
    required: [profile]
  substitution:
    mustSupport: true
    index: 23
    elements:
      wasSubstituted: {short: Indicates whether a substitution was made on the dispensed medication, mustSupport: true, index: 24}
  extension:
    type: Extension
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
    index: 2
    slicing:
      slices:
        rxPrescriptionProcessIdentifier:
          match: {}
          schema: {type: Extension, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', index: 2}
          min: 0
          max: 1
  status:
    short: completed
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa-medication/ValueSet/epa-medication-dispense-status-vs'}
    pattern: {type: Code, value: completed}
    index: 7
  dosageInstruction: {mustSupport: true, index: 22}
  identifier:
    short: ePrescription identifier
    index: 3
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        RxOriginatorProcessIdentifier:
          match: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier'}
          schema:
            type: Identifier
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier'}
            index: 4
          min: 0
          max: 1
        EPADispensationIdentifier:
          match: {system: 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier'}
          schema:
            type: Identifier
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier'}
            index: 5
          min: 0
          max: 1
        prescriptionID:
          match: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'}
          schema:
            type: Identifier
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'}
            _required: true
            index: 6
          min: 1
          max: 1
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication']
    index: 11
  quantity:
    short: Number of dispensed packages/ units
    mustSupport: true
    index: 17
    elements:
      value: {mustSupport: true, index: 18}
      unit: {mustSupport: true, index: 19}
  authorizingPrescription:
    elements:
      reference: {mustSupport: true, index: 16}
    required: [reference]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 12
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 13}
    required: [identifier]
  performer:
    mustSupport: true
    index: 14
    elements:
      actor:
        type: Reference
        refers: ['https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_PractitionerRole']
        index: 15
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 10
package_version: 0.9.1-beta
extensions:
  rxPrescriptionProcessIdentifier: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', min: 0, max: 1, type: Extension, index: 2}
class: profile
kind: resource
url: https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: '1.0'
required: [whenHandedOver, identifier, subject, meta, performer]