ErxMedication

public struct ErxMedication : Hashable, Codable

For informations on medication and it’s profiles go to: https://wiki.gematik.de/display/DEV/eRp+App+-+Medikamententypen+der+KBV

  • 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 .pzn and .freeText profile types)

    Note

    For .ingredient and .compounding name should be substituted from ingredients.first.text

    Declaration

    Swift

    public let name: String?
  • pzn

    Number of the medication ( only for .pzn profile 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 .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: Batch?
  • Ingredients of the medication (only for profileType .ingredient and .compounding)

    Declaration

    Swift

    public let ingredients: [Ingredient]
  • Information that only applies to packages.

    See more

    Declaration

    Swift

    public struct Batch : Equatable, Hashable, Codable
  • Category of a drug

    See more

    Declaration

    Swift

    public enum DrugCategory : String, Equatable, Codable
  • Declaration

    Swift

    public enum ProfileType : String, Equatable, Codable
  • Declaration

    Swift

    public struct Ingredient : Equatable, Hashable, Codable
  • Declaration

    Swift

    public struct Ratio : Equatable, Hashable, Codable, CustomStringConvertible
  • Declaration

    Swift

    public struct Quantity : Equatable, Hashable, Codable, CustomStringConvertible