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
medicationText
and 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 .
compounding
profile 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.text
field first. If unavailable, it will return a first founddisplayName
in thecode.codings
arrayDeclaration
Swift
public var name: String? { get }
-
Number of the medication ( only for
.pzn
profile types)Declaration
Swift
public var pzn: String? { get }