ResourceParamsBasedDownloadWorkManager

DownloadWorkManager implementation based on the provided ResourceSearchParams to generate Resource search queries and parse Bundle.BundleType.SEARCHSET type Bundle. This implementation takes a DFS approach and downloads all available resources for a particular ResourceType before moving on to the next ResourceType.

Constructors

Types

Link copied to clipboard

Functions

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

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

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

Returns the map of resourceType and URL for summary of total count for each download request

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

Processes the response received from the FHIR server.