ErxRemoteDataStore
public protocol ErxRemoteDataStoreInterface for the remote data store
- 
                  
                  Fetch the ErxTask by its id and accessCode when required by SelfDeclarationSwift func fetchTask(by id: ErxTask.ID, accessCode: String?) -> AnyPublisher<ErxTask?, RemoteStoreError>Parametersidthe ErxTask ID accessCodeAccessCode, optional as required by implementing DataStore Return ValuePublisher for the fetch request 
- 
                  
                  List all tasks contained in the store DeclarationSwift func listAllTasks(after referenceDate: String?) -> AnyPublisher<PagedContent<[ErxTask]>, RemoteStoreError>ParametersreferenceDateTasks with modification date greater or equal referenceDatewill be listed. Passnilfor listing all
- 
                  
                  List the next page of a previous received PagedContent. DeclarationSwift func listTasksNextPage(of previousPage: PagedContent<[ErxTask]>) -> AnyPublisher<PagedContent<[ErxTask]>, RemoteStoreError>ParameterspreviousPageThe previous page of the content to retrieve 
- 
                  
                  List detailed tasks with all available information in the store DeclarationSwift func listDetailedTasks(for tasks: PagedContent<[ErxTask]>) -> AnyPublisher<PagedContent<[ErxTask]>, RemoteStoreError>ParameterstasksThe low detail tasks 
- 
                  
                  Deletes a sequence of tasks from the store DeclarationSwift func delete(tasks: [ErxTask]) -> AnyPublisher<Bool, RemoteStoreError>
- 
                  
                  Sends a redeem request of an ErxTaskfor the selected pharmacy Note: The response does not verify that the pharmacy has accepted the orderDeclarationSwift func redeem(order: ErxTaskOrder) -> AnyPublisher<ErxTaskOrder, RemoteStoreError>ParametersorderOrder that contains informations about the task, redeem option and the pharmacy where the task should be redeemed Return ValueThe order that has been redeemed 
- 
                  
                  Load All communications of the given profile DeclarationSwift func listAllCommunications( after referenceDate: String?, for profile: ErxTask.Communication.Profile ) -> AnyPublisher<[ErxTask.Communication], RemoteStoreError>ParametersreferenceDateCommunications with modification date great or equalreferenceDatewill be listed. Passnilfor listing allprofileFilters for the passed Profile type 
- 
                  
                  Fetch the ErxAuditEvent by its id when required by SelfDeclarationSwift func fetchAuditEvent(by id: ErxAuditEvent.ID) -> AnyPublisher<ErxAuditEvent?, RemoteStoreError>Parametersidthe ErxAuditEvent ID Return ValuePublisher for the fetch request 
- 
                  
                  List all audit events contained in the store DeclarationSwift func listAllAuditEvents(after referenceDate: String?, for locale: String?) -> AnyPublisher<PagedContent<[ErxAuditEvent]>, RemoteStoreError>ParametersreferenceDateAuditEvents with modification date great or equalreferenceDatewill be listed. Passnilfor listing alllocaleLocation type of the language in which the result should be returned 
- 
                  
                  List all audit events contained in the store DeclarationSwift func listAuditEventsNextPage(from url: URL, locale: String?) -> AnyPublisher<PagedContent<[ErxAuditEvent]>, RemoteStoreError>Parametersurldestination of the request localeLocation type of the language in which the result should be returned 
- 
                  
                  List all medication dispenses for a specific Prescription/ErxTaskDeclarationSwift func listMedicationDispenses( for id: ErxTask.ID ) -> AnyPublisher<[ErxMedicationDispense], RemoteStoreError>ParametersidMedicationDispense for the corresponding ErxTask.IDwill be fetched.Return ValueMedicationDispenses
- 
                  
                  Fetch the ErxChargeItem by its id when required by SelfDeclarationSwift func fetchChargeItem(by id: ErxChargeItem.ID) -> AnyPublisher<ErxChargeItem?, RemoteStoreError>Parametersidthe ErxChargeIem ID Return ValuePublisher for the fetch request 
- 
                  
                  List all charge items contained in the store DeclarationSwift func listAllChargeItems(after referenceDate: String?) -> AnyPublisher<[ErxChargeItem], RemoteStoreError>ParametersreferenceDateChargeItems with entered date great or equalreferenceDatewill be listed. Passnilfor listing allReturn ValuePublisher for the fetch request 
- 
                  
                  Deletes a sequence of charge items from the store DeclarationSwift func delete(chargeItems: [ErxChargeItem]) -> AnyPublisher<Bool, RemoteStoreError>
- 
                  
                  Loads All consents of a given profile Uses the request headers ACCESS_TOKEN with the containing insurance id DeclarationSwift func fetchConsents() -> AnyPublisher<[ErxConsent], RemoteStoreError>Return ValueArray of all loaded ErxConsent
- 
                  
                  Send a grant consent request of an ErxConsentDeclarationSwift func grantConsent(_ consent: ErxConsent) -> AnyPublisher<ErxConsent?, RemoteStoreError>ParametersconsentConsent that contains information about the type of consent and insurance id which the consent will be granted for Return ValueThe ErxConsentthat was granted
- 
                  
                  Delete an consent of ErxConsentto revoke itDeclarationSwift func revokeConsent(_ category: ErxConsent.Category) -> AnyPublisher<Bool, RemoteStoreError>Parameterscategorythe ErxConsent.Categoryof the consent to be revokedReturn ValuePublisher for the load request 
 View on GitHub
            View on GitHub
           ErxRemoteDataStore Protocol Reference
      ErxRemoteDataStore Protocol Reference