DownloadWorkManager

Manages the process of downloading FHIR resources from a remote server.

Implementations of this interface define how download requests are generated and how responses are processed to update the local database.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun getNextRequest(): DownloadRequest?

Returns the next DownloadRequest to be executed, or null if there are no more requests.

Link copied to clipboard
abstract suspend fun getSummaryRequestUrls(): Map<ResourceType, String>

Returns a map of ResourceType to URLs that can be used to retrieve the total count of resources to be downloaded for each type. This information is used for displaying download progress.

Link copied to clipboard
abstract suspend fun processResponse(response: Resource): Collection<Resource>

Processes the response received from the FHIR server.