get

inline suspend fun <R : Resource> FhirEngine.get(id: String): R

Retrieves a FHIR resource of type R with the given id from the local storage.

Return

The requested FHIR resource.

Parameters

R

The type of the FHIR resource to retrieve.

id

The logical ID of the resource to retrieve.

Throws

if the resource is not found.