ErxTaskFHIROperation

public enum ErxTaskFHIROperation<Value, Handler> where Value == Handler.Value, Handler : FHIRResponseHandler
extension ErxTaskFHIROperation: FHIRClientOperation

Operations we expect the FHIR service to possibly be able to perform

  • Request the capability statement

    Declaration

    Swift

    case capabilityStatement(handler: Handler)
  • Request all tasks from the service in a certain format

    Declaration

    Swift

    case allTasks(referenceDate: String?, handler: Handler)
  • Request tasks next page from the service in a certain format

    Declaration

    Swift

    case tasksNextPage(url: URL, handler: Handler)
  • Request a specific task from the service in a certain format

    Declaration

    Swift

    case taskBy(id: ErxTask.ID, accessCode: String?, handler: Handler)
  • Delete(/Abort) a specific task by it’s taskID and accessCode

    Declaration

    Swift

    case deleteTask(id: ErxTask.ID, accessCode: String?, handler: Handler)
  • Request a specific audit event from the service in a certain format

    Declaration

    Swift

    case auditEventBy(id: ErxAuditEvent.ID, handler: Handler)
  • Request all audit events for a specific language after a specific reference date from the service

    Declaration

    Swift

    case auditEvents(referenceDate: String?, language: String?, handler: Handler)
  • Request to redeem a ErxTaskOrder in a pharmacy

    Declaration

    Swift

    case redeem(order: ErxTaskOrder, handler: Handler)
  • Load communication resource from server

    Declaration

    Swift

    case allCommunications(referenceDate: String?, handler: Handler)
  • Request all medication dispenses from a specific prescription

    Declaration

    Swift

    case medicationDispenses(id: ErxTask.ID, handler: Handler)
  • Load all medication dispenses since reference date

    Declaration

    Swift

    case allMedicationDispenses(referenceDate: String?, handler: Handler)
  • Load all charge items since reference date

    Declaration

    Swift

    case allChargeItems(referenceDate: String?, handler: Handler)
  • Request a specific charge item from the service with the given ChargeItem id

    Declaration

    Swift

    case chargeItemBy(id: String, handler: Handler)
  • Delete a specific charge item by it’s ID

    Declaration

    Swift

    case deleteChargeItem(id: ErxChargeItem.ID, accessCode: String?, handler: Handler)
  • Request all granted consents

    Declaration

    Swift

    case consents(handler: Handler)
  • Request to grant a ErxConsent of the given category

    Declaration

    Swift

    case grant(consent: ErxConsent, handler: Handler)
  • Delete the ErxConsent for the given ErxConsent.Category

    Declaration

    Swift

    case revokeConsent(category: ErxConsent.Category, handler: Handler)
  • Loads content for a given url. Used for paging.

    Declaration

    Swift

    case auditEventsNextPage(url: URL, handler: Handler, locale: String?)
  • Declaration

    Swift

    public func handle(response: FHIRClient.Response) throws -> Value
  • Declaration

    Swift

    public var relativeUrlString: String? { get }
  • Declaration

    Swift

    public var httpHeaders: [String : String] { get }
  • Declaration

    Swift

    public var httpMethod: HTTPMethod { get }
  • Declaration

    Swift

    public var httpBody: Data? { get }
  • Declaration

    Swift

    public var acceptFormat: FHIRAcceptFormat { get }