FHIRClient
extension FHIRClient
-
Convenience function for searching for pharmacies
[REQ:gemSpec_eRp_FdV:A_19984] validate pharmacy data format conforming to FHIR
Declaration
Swift
public func searchPharmacies( by searchTerm: String, position: Position?, filter: [PharmacyRemoteDataStoreFilter], accessToken: String? = nil ) -> AnyPublisher<[PharmacyLocation], FHIRClient.Error>Parameters
searchTermString that send to the server for filtering the pharmacies response
positionPosition (latitude and longitude) of pharmacy
filterfurther filter parameters for pharmacies
accessTokenaccess token to interact with the service
Return Value
AnyPublisherthat emits allPharmacyLocations for the givensearchTerm -
Convenience function for requesting a certain pharmacy by ID
Declaration
Swift
public func fetchPharmacy( by telematikId: String, accessToken: String? = nil ) -> AnyPublisher<PharmacyLocation?, Error>Parameters
telematikIdThe Telematik-ID of the pharmacy to be requested
accessTokenaccess token to interact with the service
Return Value
AnyPublisherthat emits thePharmacyLocationor nil when not found -
Load
Insuranceby institution identifier (IK) from a remote (server).Declaration
Swift
public func fetchInsurance( by ikNumber: String, accessToken: String? = nil ) -> AnyPublisher<Insurance?, Error>Parameters
ikNumberThe institution (IK) identifier of the organization to be requested
Return Value
AnyPublisherthat emits theTelematikIdor nil when not found -
Convenience function for requesting a telematikId by institution identifier (IK)
Declaration
Swift
public func fetchAllInsurances( accessToken: String? = nil ) -> AnyPublisher<[Insurance], Error>Parameters
ikNumberThe institution (IK) identifier of the organization to be requested
Return Value
AnyPublisherthat emits theTelematikIdor nil when not found -
Convenience function for requesting the certificates of a pharmacy
Declaration
Swift
public func loadAvsCertificates(for locationId: String) -> AnyPublisher<[X509], Error>Parameters
locationIdThe id of the pharmacy to be requested
Return Value
AnyPublisherthat emits an array ofX509certificates
View on GitHub
FHIRClient Extension Reference