PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@0.0.3
    https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request
description: Defines the medication request resource for the Medication Service in the ePA system.
package_name: de.gematik.epa.medication
derivation: constraint
name: EPAMedicationRequest
type: MedicationRequest
elements:
  substitution:
    mustSupport: true
    index: 22
    elements:
      allowed:
        mustSupport: true
        choices: [allowedBoolean]
        index: 24
      allowedBoolean: {type: boolean, mustSupport: true, choiceOf: allowed, index: 25}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 7}
    required: [reference]
  dispenseRequest:
    mustSupport: true
    index: 17
    elements:
      quantity:
        mustSupport: true
        index: 18
        elements:
          value: {short: Anzahl der verordneten Packungen, mustSupport: true, index: 19}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            mustSupport: true
            index: 20
          code:
            mustSupport: true
            pattern: {type: Code, value: '{Package}'}
            index: 21
        required: [value, system, code]
    required: [quantity]
  authoredOn: {short: Ausstellungsdatum, mustSupport: true, index: 10}
  note:
    mustSupport: true
    index: 12
    elements:
      text: {short: Abgabehinweis, mustSupport: true, index: 13}
  requester:
    type: Reference
    mustSupport: true
    refers: ['https://gematik.de/fhir/directory/StructureDefinition/PractitionerRoleDirectory']
    index: 11
  status:
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa-medication/ValueSet/epa-medication-request-vs'}
    index: 2
  dosageInstruction:
    mustSupport: true
    index: 14
    elements:
      text: {short: Dosieranweisung, mustSupport: true, index: 15}
      patientInstruction: {short: Gebrauchsanweisung einer Rezeptur, mustSupport: true, index: 16}
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      ordered: false
      description: ePrescription identifier and overall transaction identifier
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        rxPrescriptionProcessIdentifier:
          match: {}
          schema: {type: Identifier, _required: true, index: 1}
          min: 1
          max: 1
  intent: {mustSupport: true, index: 3}
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication']
    index: 6
  subject:
    mustSupport: true
    index: 8
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 9}
    required: [identifier]
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 5
package_version: 0.0.3
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.0.0
required: [authoredOn, identifier, dispenseRequest]