processResponse

open suspend override fun processResponse(response: Resource): Collection<Resource>

Processes the response received from the FHIR server.

This method is responsible for:

  • Extracting resources from the response.

  • Identifying additional resource URLs to download, for example to handle pagination.

  • Returning the resources to be saved to the local database.

Return

A collection of Resources extracted from the response.

Parameters

response

The FHIR resource received from the server, often a List or Bundle.