ErxEpaMedication
public struct ErxEpaMedication : Hashable, Codable, Sendable
This structure represents a medication derived from the profile GEM_ERP_PR_Medication
which by itself is derived from EPA_MEDICATION https://simplifier.net/epa-medication/epamedication
For information on medication and it’s profiles go to:
https://simplifier.net/packages/de.gematik.erezept-workflow.r4/1.4.3/files/2550130
-
init(epaMedicationType:drugCategory: code: status: isVaccine: amount: form: normSizeCode: batch: packaging: manufacturingInstructions: ingredients: ) Declaration
Swift
public init( epaMedicationType: EpaMedicationType? = nil, drugCategory: EpaMedicationDrugCategory? = nil, code: EpaMedicationCodeCodableConcept? = nil, status: EpaMedicationStatus? = nil, isVaccine: Bool? = nil, amount: EpaMedicationRatio? = nil, form: EpaMedicationFormCodableConcept? = nil, normSizeCode: String? = nil, batch: EpaMedicationBatch? = nil, packaging: String? = nil, manufacturingInstructions: String? = nil, ingredients: [EpaMedicationIngredient] = [] ) -
Category of the drug
Declaration
Swift
public let drugCategory: EpaMedicationDrugCategory? -
EPAMedicationType of the medication Note: Nil represents one of the former Freitext-, PZN- or Wirkstoff-Medications types
Declaration
Swift
public let epaMedicationType: EpaMedicationType? -
Coded form of the medication (may contain
medicationTextand IDs like pzn)Declaration
Swift
public let code: EpaMedicationCodeCodableConcept? -
A code to indicate if the medication is in active use.
Declaration
Swift
public let status: EpaMedicationStatus? -
Specific amount of the drug in the packaged product.
Declaration
Swift
public let amount: EpaMedicationRatio? -
Describes the form of the item. E.g.: Powder, tablets, capsule.
Declaration
Swift
public let form: EpaMedicationFormCodableConcept? -
Describes the therapeutic size for the package (e.g. N1) / a.k.a. “Normgroesse”
Declaration
Swift
public let normSizeCode: String? -
True if marked as vaccine, false if not
Declaration
Swift
public let isVaccine: Bool? -
Informations about the packaging (only for .
compoundingprofile types)Declaration
Swift
public let packaging: String? -
Instructions from the manufacturing company (only for compounding profile types)
Declaration
Swift
public let manufacturingInstructions: String? -
Details about packaged medications (only available with medication dispense)
Declaration
Swift
public let batch: EpaMedicationBatch? -
Ingredients of the medication
Declaration
Swift
public let ingredients: [EpaMedicationIngredient] -
Shortcut for a name of the medication Note: This checks for the
code.textfield first. If unavailable, it will return a first founddisplayNamein thecode.codingsarrayDeclaration
Swift
public var name: String? { get } -
Number of the medication ( only for
.pznprofile types)Declaration
Swift
public var pzn: String? { get }
View on GitHub
ErxEpaMedication Structure Reference