PackagesCanonicalsLogsProblems
    Packages
    rs/de.gematik.epa.medication@1.1.1
    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: rs/de.gematik.epa.medication
derivation: constraint
name: EPAMedicationRequest
type: MedicationRequest
elements:
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  substitution:
    mustSupport: true
    index: 50
    elements:
      allowed:
        mustSupport: true
        choices: [allowedBoolean]
        index: 52
      allowedBoolean: {type: boolean, mustSupport: true, choiceOf: allowed, index: 53}
  dispenseRequest:
    mustSupport: true
    index: 45
    elements:
      quantity:
        mustSupport: true
        index: 46
        elements:
          value: {short: Number of Prescribed Packages, mustSupport: true, index: 47}
          system:
            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
            mustSupport: true
            type: uri
            index: 48
          code:
            mustSupport: true
            pattern: {type: code, value: '{Package}'}
            type: code
            index: 49
        required: [code, system, value]
    required: [quantity]
  authoredOn: {short: Issue Date, mustSupport: true, index: 38}
  note:
    mustSupport: true
    index: 40
    elements:
      text: {short: Dispensing Note, mustSupport: true, index: 41}
  extension:
    type: Extension
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-request-linked-statement-extension
    index: 3
    slicing:
      slices:
        medicationRequestLinkedStatement:
          match: {}
          schema: {type: Extension, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-request-linked-statement-extension', index: 3}
          min: 0
        multiplePrescription:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
            index: 4
            extensions:
              indicator:
                url: null
                index: 5
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 7
              counter:
                url: null
                index: 8
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 10
                  value[x]:
                    elements:
                      numerator:
                        mustSupport: true
                        index: 11
                        elements:
                          value: {mustSupport: true, index: 12}
                      denominator:
                        mustSupport: true
                        index: 13
                        elements:
                          value: {mustSupport: true, index: 14}
              period:
                url: null
                index: 15
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 17
                  value[x]:
                    elements:
                      start: {mustSupport: true, index: 18}
                      end: {mustSupport: true, index: 19}
              id:
                url: null
                index: 20
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 22
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 23}
                      value: {mustSupport: true, index: 24}
            elements:
              extension:
                index: 5
                slicing:
                  slices:
                    indicator:
                      match: {}
                      schema:
                        index: 5
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 7
                    counter:
                      match: {}
                      schema:
                        index: 8
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 10
                          value[x]:
                            elements:
                              numerator:
                                mustSupport: true
                                index: 11
                                elements:
                                  value: {mustSupport: true, index: 12}
                              denominator:
                                mustSupport: true
                                index: 13
                                elements:
                                  value: {mustSupport: true, index: 14}
                    period:
                      match: {}
                      schema:
                        index: 15
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 17
                          value[x]:
                            elements:
                              start: {mustSupport: true, index: 18}
                              end: {mustSupport: true, index: 19}
                    id:
                      match: {}
                      schema:
                        index: 20
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 22
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 23}
                              value: {mustSupport: true, index: 24}
        isBvg:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
            index: 25
            elements:
              value:
                mustSupport: true
                choices: []
                index: 27
  requester:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/PractitionerRole']
    index: 39
  status:
    short: Status of Medication Request
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/terminology/ValueSet/epa-medication-request-vs'}
    index: 31
  dosageInstruction:
    mustSupport: true
    index: 42
    elements:
      text: {short: Dosage Instructions, mustSupport: true, index: 43}
      patientInstruction: {short: Instructions for Use, mustSupport: true, index: 44}
  identifier:
    index: 28
    slicing:
      rules: open
      ordered: false
      description: ePrescription identifier and overall transaction identifier
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        RxPrescriptionProcessIdentifier:
          match: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier'}
          schema:
            type: Identifier
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier'}
            index: 29
          min: 0
          max: 1
        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: 30
          min: 0
          max: 1
  intent: {short: filler-order, mustSupport: true, index: 32}
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    index: 35
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 36
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 37}
    required: [identifier]
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 34
package_version: 1.1.1
extensions:
  medicationRequestLinkedStatement: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-request-linked-statement-extension', min: 0, type: Extension, index: 3}
  multiplePrescription:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
    type: Extension
    mustSupport: true
    index: 4
    extensions:
      indicator:
        url: null
        index: 5
        elements:
          value:
            mustSupport: true
            choices: []
            index: 7
      counter:
        url: null
        index: 8
        elements:
          value:
            mustSupport: true
            choices: []
            index: 10
          value[x]:
            elements:
              numerator:
                mustSupport: true
                index: 11
                elements:
                  value: {mustSupport: true, index: 12}
              denominator:
                mustSupport: true
                index: 13
                elements:
                  value: {mustSupport: true, index: 14}
      period:
        url: null
        index: 15
        elements:
          value:
            mustSupport: true
            choices: []
            index: 17
          value[x]:
            elements:
              start: {mustSupport: true, index: 18}
              end: {mustSupport: true, index: 19}
      id:
        url: null
        index: 20
        elements:
          value:
            mustSupport: true
            choices: []
            index: 22
          value[x]:
            elements:
              system: {mustSupport: true, index: 23}
              value: {mustSupport: true, index: 24}
    elements:
      extension:
        index: 5
        slicing:
          slices:
            indicator:
              match: {}
              schema:
                index: 5
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 7
            counter:
              match: {}
              schema:
                index: 8
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 10
                  value[x]:
                    elements:
                      numerator:
                        mustSupport: true
                        index: 11
                        elements:
                          value: {mustSupport: true, index: 12}
                      denominator:
                        mustSupport: true
                        index: 13
                        elements:
                          value: {mustSupport: true, index: 14}
            period:
              match: {}
              schema:
                index: 15
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 17
                  value[x]:
                    elements:
                      start: {mustSupport: true, index: 18}
                      end: {mustSupport: true, index: 19}
            id:
              match: {}
              schema:
                index: 20
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 22
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 23}
                      value: {mustSupport: true, index: 24}
  isBvg:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
    type: Extension
    mustSupport: true
    index: 25
    elements:
      value:
        mustSupport: true
        choices: []
        index: 27
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.1.1
required: [authoredOn, dispenseRequest]