PackagesCanonicalsLogsProblems
    Packages
    dosing.aid-medicationrequest@1.0.2
    https://fhir.dosing-gmbh.de/StructureDefinition/AID-MedicationRequest
description: MedicationRequest for a write-back callback to a host clinical system. Binds DosageDgMP for dosageInstruction; subject/requester/insurance do not require literal references.
package_name: dosing.aid-medicationrequest
derivation: constraint
name: AIDMedicationRequest
type: MedicationRequest
elements:
  insurance: {short: Insurance coverage (optional), mustSupport: false, index: 12}
  substitution:
    short: Substitution permission (aut idem)
    mustSupport: true
    index: 16
    elements:
      allowed:
        short: Substitution permission (aut idem)
        mustSupport: true
        choices: [allowedBoolean]
        index: 18
      allowedBoolean: {type: boolean, short: Substitution permission (aut idem), mustSupport: true, choiceOf: allowed, index: 19}
  dispenseRequest:
    short: Medication supply authorization
    mustSupport: true
    index: 14
    elements:
      quantity: {short: Package quantity to dispense, mustSupport: true, index: 15}
  authoredOn: {short: Date the prescription was issued, mustSupport: true, index: 10}
  extension:
    short: Slices for extension
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        renderedDosageInstruction:
          match: {url: null}
          schema: {short: Rendered dosage text (e.g. "1-2-0-1"), type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction', index: 1}
          min: 0
          max: 1
        generatedDosageInstructionsMeta:
          match: {url: null}
          schema: {short: 'Metadata about the generated dosage text (language, algorithm version)', type: Extension, mustSupport: true, url: 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta', index: 2}
          min: 0
          max: 1
        emergencyServicesFee:
          match: {url: null}
          schema: {type: Extension, short: Emergency services fee (Noctu), mustSupport: true, url: 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee', index: 3}
          min: 0
          max: 1
        ser:
          match: {url: null}
          schema: {type: Extension, short: Social compensation law indicator (SER), mustSupport: true, url: 'https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_SER', index: 4}
          min: 0
          max: 1
        multiplePrescription:
          match: {url: null}
          schema: {type: Extension, short: Multiple-prescription indicator, mustSupport: true, url: 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription', index: 5}
          min: 0
          max: 1
  requester: {short: Requesting practitioner (optional), mustSupport: false, index: 11}
  dosageInstruction: {type: Dosage, short: 'Dosage, structured and/or free text (DosageDgMP)', mustSupport: true, index: 13}
  medicationReference:
    short: Reference to the Medication resource in the same payload
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    type: Reference
    mustSupport: true
    choiceOf: medication
    index: 8
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            short: Reference to the Medication resource in the same payload
            refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
            type: Reference
            mustSupport: true
            _required: true
            choiceOf: medication
            index: 8
          min: 1
          max: 1
  subject: {short: Patient (display-only is sufficient), mustSupport: true, index: 9}
  medication:
    short: Reference to the Medication resource in the same payload
    mustSupport: true
    choices: [medicationReference]
    index: 7
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            short: Reference to the Medication resource in the same payload
            mustSupport: true
            choices: [medicationReference]
            _required: true
            index: 7
          min: 1
          max: 1
package_version: 1.0.2
extensions:
  renderedDosageInstruction: {url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction', min: 0, max: 1, short: Rendered dosage text (e.g. "1-2-0-1"), type: Extension, mustSupport: true, index: 1}
  generatedDosageInstructionsMeta: {url: 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta', min: 0, max: 1, short: 'Metadata about the generated dosage text (language, algorithm version)', type: Extension, mustSupport: true, index: 2}
  emergencyServicesFee: {url: 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee', min: 0, max: 1, type: Extension, short: Emergency services fee (Noctu), mustSupport: true, index: 3}
  ser: {url: 'https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_SER', min: 0, max: 1, type: Extension, short: Social compensation law indicator (SER), mustSupport: true, index: 4}
  multiplePrescription: {url: 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription', min: 0, max: 1, type: Extension, short: Multiple-prescription indicator, mustSupport: true, index: 5}
class: profile
kind: resource
url: https://fhir.dosing-gmbh.de/StructureDefinition/AID-MedicationRequest
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.0.2
required: [dosageInstruction, medication, medicationReference]