ErxMedicationDispense
public struct ErxMedicationDispense : Hashable, Codable, SendableActs 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
- 
                  init(identifier:taskId: insuranceId: dosageInstruction: telematikId: whenHandedOver: quantity: noteText: medication: epaMedication: diGaDispense: ) Default initializer for a MedicationDispense which represent a ModulesR4.MedicationDispense DeclarationSwift public init( identifier: String, taskId: String, insuranceId: String?, dosageInstruction: String?, telematikId: String?, whenHandedOver: String?, quantity: ErxMedication.Quantity? = nil, noteText: String? = nil, medication: ErxMedication?, epaMedication: ErxEpaMedication?, diGaDispense: DiGaDispense? )
- 
                  
                  unique identifier in each ErxTaskDeclarationSwift public let identifier: String
- 
                  
                  id of the related ErkTaskcan also be used as the ID of the MedicationDispenseDeclarationSwift public let taskId: String
- 
                  
                  KVNR of the patient (e.g.: “X110461389”) DeclarationSwift 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) DeclarationSwift public let dosageInstruction: String?
- 
                  
                  Telematik-ID of the pharmacy performing the dispense (performer) DeclarationSwift public let telematikId: String?
- 
                  
                  Date string representing the actual time of performing the dispense DeclarationSwift public let whenHandedOver: String?
- 
                  
                  The amount of medication that has been dispensed. Includes unit of measure. DeclarationSwift public let quantity: ErxMedication.Quantity?
- 
                  
                  Extra information about the dispense that could not be conveyed in the other attributes. DeclarationSwift 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!DeclarationSwift public let medication: ErxMedication?
- 
                  
                  Beginning with GemWorkflow 1.4 the MedicationDispense’s Medication is derived from the profile GEM_ERP_PR_Medicationhence it replaces the now outdatedErxMedicationDeclarationSwift public let epaMedication: ErxEpaMedication?
- 
                  
                  Dispense information for an DiGa - Task DeclarationSwift public let diGaDispense: DiGaDispense?
 View on GitHub
            View on GitHub
           ErxMedicationDispense Structure Reference
      ErxMedicationDispense Structure Reference