ErxMedicationDispense

public struct ErxMedicationDispense : Hashable, Codable

Acts as the intermediate data model from a MedicationDispense resource response and the local store representation MedicationDispenses are created by the pharmacy and can contain different medications from the prescription even when the substitutionAllowed flag is false Profile: https://simplifier.net/packages/de.gematik.erezept-workflow.r4/1.2.0/files/721016

  • Default initializer for a MedicationDispense which represent a ModulesR4.MedicationDispense

    Declaration

    Swift

    public init(
        identifier: String,
        taskId: String,
        insuranceId: String?,
        dosageInstruction: String?,
        telematikId: String?,
        whenHandedOver: String?,
        quantity: ErxMedication.Quantity? = nil,
        noteText: String? = nil,
        medication: ErxMedication?
    )
  • unique identifier in each ErxTask

    Declaration

    Swift

    public let identifier: String
  • id of the related ErkTask can also be used as the ID of the MedicationDispense

    Declaration

    Swift

    public let taskId: String
  • KVNR of the patient (e.g.: “X110461389”)

    Declaration

    Swift

    public let insuranceId: String?
  • Indicates how the medication is to be used by the patient. This is the Information from the pharmacist (which can be different from the medication instructions)

    Declaration

    Swift

    public let dosageInstruction: String?
  • Telematik-ID of the pharmacy performing the dispense (performer)

    Declaration

    Swift

    public let telematikId: String?
  • Date string representing the actual time of performing the dispense

    Declaration

    Swift

    public let whenHandedOver: String?
  • The amount of medication that has been dispensed. Includes unit of measure.

    Declaration

    Swift

    public let quantity: ErxMedication.Quantity?
  • Extra information about the dispense that could not be conveyed in the other attributes.

    Declaration

    Swift

    public let noteText: String?
  • The contained medication ( most of the time based on the four KBV Medication-Profiles)

    Note

    Can contain medications that are not defined by the KBV medication profiles!

    Declaration

    Swift

    public let medication: ErxMedication?