PharmacyLocation
public struct PharmacyLocation : Identifiable, Equatable
extension PharmacyLocation: Codable
Represents all information needed for searching for pharmacies.
-
init(id:status: telematikID: created: name: types: position: address: telecom: lastUsed: isFavorite: imagePath: countUsage: hoursOfOperation: avsEndpoints: avsCertificates: ) Pharmacy default initializer
Declaration
Swift
public init( id: String, status: Status? = nil, telematikID: String, created: Date = Date(), name: String? = nil, types: [PharmacyType], position: Position? = nil, address: Address? = nil, telecom: Telecom? = nil, lastUsed: Date? = nil, isFavorite: Bool = false, imagePath: String? = nil, countUsage: Int = 0, hoursOfOperation: [HoursOfOperation] = [], avsEndpoints: AVSEndpoints? = nil, avsCertificates: [X509] = [] )
-
Id of the FHIR Location
Declaration
Swift
public var id: String -
LocationStatus NOTE: Is here used to indicate E-Rezept readiness
Declaration
Swift
public var status: Status? -
Identifier of the pharmacy
Declaration
Swift
public var telematikID: String -
date of local client creation
Declaration
Swift
public var created: Date -
Name of pharmacy
Declaration
Swift
public var name: String? -
A pharmacy can have multiple types. In FHIR the code are e.g. “PHARM” and “OUTPHARM” and “MOBL”
Declaration
Swift
public var types: [PharmacyType] -
Position, i.e. Latitude and Longitude of the pharmacy’s address
Declaration
Swift
public var position: Position? -
Address
Declaration
Swift
public var address: Address? -
Telecom
Declaration
Swift
public var telecom: Telecom? -
Bate of latest use for redeeming
Declaration
Swift
public var lastUsed: Date? -
Bool indicating if user has marked this pharmacy as favorite
Declaration
Swift
public var isFavorite: Bool -
Path to an image of the pharmacy
Declaration
Swift
public var imagePath: String? -
Number of times this pharmacy has been used for redeeming
Declaration
Swift
public var countUsage: Int -
HoursOfOperation (opening hours)
Declaration
Swift
public var hoursOfOperation: [HoursOfOperation] -
Container that holds urls to the AVS Endpoints and their certificates to send requests with the AVSModul
Declaration
Swift
public var avsEndpoints: AVSEndpoints? -
Array of certificates for all recipients
Declaration
Swift
public var avsCertificates: [X509] -
Declaration
Swift
public var canBeDisplayedInMap: Bool { get } -
Declaration
Swift
public var hasAVSEndpoints: Bool { get } -
Indicates if the delivery service via the
eRpRemoteStoragemodule (Fachdienst) is present Note: Authentication via “Fachdienst” is requiredDeclaration
Swift
public var hasDeliveryService: Bool { get } -
Indicates if the shipment service via the
eRpRemoteStoragemodule (Fachdienst) is present Note: Authentication via “Fachdienst” is requiredDeclaration
Swift
public var hasShipmentService: Bool { get } -
Indicates if the reservation/onPremise service via the
eRpRemoteStoragemodule (Fachdienst) is present Note: Authentication via “Fachdienst” is requiredDeclaration
Swift
public var hasReservationService: Bool { get } -
Indicates if the emergency service via the
eRpRemoteStoragemodule (Fachdienst) is present Note: Authentication via “Fachdienst” is requiredDeclaration
Swift
public var hasEmergencyService: Bool { get } -
Indicates if the delivery service via the
AVSmodule (ApothekenVerwaltunsSystem) is present Note: No authentication via “Fachdienst” is requiredDeclaration
Swift
public var hasDeliveryAVSService: Bool { get } -
Indicates if the shipment service via the
AVSmodule (ApothekenVerwaltunsSystem) is present Note: No authentication via “Fachdienst” is requiredDeclaration
Swift
public var hasShipmentAVSService: Bool { get } -
Indicates if the reservation/onPremise service via the
AVSmodule (ApothekenVerwaltunsSystem) is present Note: No authentication via “Fachdienst” is requiredDeclaration
Swift
public var hasReservationAVSService: Bool { get } -
Declaration
Swift
public var hasAnyAVSService: Bool { get } -
Declaration
Swift
public struct AVSEndpoints : Codable, Equatable -
Declaration
Swift
public mutating func updateLocalStoredProperties(with pharmacy: PharmacyLocation) -
Declaration
Swift
public enum Dummies -
Mode of operation / eRx-readiness status
See moreDeclaration
Swift
public enum Status : String, Codable -
Declaration
Swift
public enum PharmacyType : String, Codable, Hashable -
Declaration
Swift
public struct Position : Codable, Equatable, Hashable -
Declaration
Swift
public struct Address : Codable, Hashable -
Declaration
Swift
public struct Telecom : Codable, Hashable -
Declaration
Swift
public struct HoursOfOperation : Codable, Hashable
View on GitHub
PharmacyLocation Structure Reference