PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erezept@workflow.r4-1.4.2-rc1
    https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense
description: Handles information about the redeem of the prescription and the submited medication.
package_name: de.gematik.erezept
derivation: constraint
name: GEM_ERP_PR_MedicationDispense
type: MedicationDispense
elements:
  meta:
    index: 0
    elements:
      profile:
        pattern: {type: Canonical, value: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.4'}
        index: 1
    required: [profile]
  identifier:
    short: ePrescription identifier
    index: 2
    slicing:
      slices:
        prescriptionID:
          match: {}
          schema:
            type: Identifier
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'}
            _required: true
            index: 3
          min: 1
          max: 1
  status:
    short: completed
    pattern: {type: Code, value: completed}
    index: 4
  medication:
    choices: [medicationReference]
    index: 6
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication']
    index: 7
  performer:
    elements:
      actor:
        elements:
          identifier: {type: Identifier, index: 8}
        required: [identifier]
  whenPrepared:
    constraint:
      workflow-abgabeDatumsFormat: {human: 'Wert muss ein Datum in der Form: YYYY-MM-DD sein.', source: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense', severity: error, expression: toString().length()=10}
    mustSupport: false
    index: 9
  whenHandedOver:
    constraint:
      workflow-abgabeDatumsFormat: {human: 'Wert muss ein Datum in der Form: YYYY-MM-DD sein.', source: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense', severity: error, expression: toString().length()=10}
    index: 10
package_version: workflow.r4-1.4.2-rc1
class: profile
kind: resource
url: https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense
base: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense
version: '1.4'
required: [identifier, meta]