ErxMedication
public struct ErxMedication : Hashable, Codable, Sendable
For informations on medication and it’s profiles go to: https://wiki.gematik.de/display/DEV/eRp+App+-+Medikamententypen+der+KBV
-
init(name:profile: drugCategory: pzn: isVaccine: amount: dosageForm: normSizeCode: batch: packaging: manufacturingInstructions: ingredients: ) Declaration
Swift
public init(name: String? = nil, profile: ProfileType? = nil, drugCategory: DrugCategory? = nil, pzn: String? = nil, isVaccine: Bool = false, amount: Ratio? = nil, dosageForm: String? = nil, normSizeCode: String? = nil, batch: Batch? = nil, packaging: String? = nil, manufacturingInstructions: String? = nil, ingredients: [Ingredient] = []) -
Category of the drug
Declaration
Swift
public let drugCategory: DrugCategory? -
Underlying profile used to define the medication
Declaration
Swift
public let profile: ProfileType? -
Name of the medication (only for
.pznand.freeTextprofile types)Note
For.ingredient and .compoundingname should be substituted fromingredients.first.textDeclaration
Swift
public let name: String? -
Number of the medication ( only for
.pznprofile types)Declaration
Swift
public let pzn: String? -
Specific amount of the drug in the packaged product.
Declaration
Swift
public let amount: Ratio? -
Describes the form of the item. E.g.: Powder, tablets, capsule. (Darreichungsform)
Declaration
Swift
public let dosageForm: String? -
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: Batch? -
Ingredients of the medication (only for profileType
.ingredientand.compounding)Declaration
Swift
public let ingredients: [Ingredient] -
Information that only applies to packages.
See moreDeclaration
Swift
public struct Batch : Equatable, Hashable, Codable, Sendable -
Category of a drug
See moreDeclaration
Swift
public enum DrugCategory : String, Equatable, Codable, Sendable -
Declaration
Swift
public enum ProfileType : String, Equatable, Codable, Sendable -
Declaration
Swift
public struct Ingredient : Equatable, Hashable, Codable, Sendable -
Declaration
Swift
public struct Ratio : Equatable, Hashable, Codable, CustomStringConvertible, Sendable -
Declaration
Swift
public struct Quantity : Equatable, Hashable, Codable, CustomStringConvertible, Sendable
View on GitHub
ErxMedication Structure Reference