core.medplumclient.getcachedreference | Medplum

MedplumClient.getCachedReference() method

Returns a cached resource if it is available.

Signature:

getCachedReference<T extends Resource>(reference: Reference<T>): WithId<T> | undefined;

Parameters

Parameter Type Description
reference Reference The FHIR reference.

Returns:

WithId | undefined

The resource if it is available in the cache; undefined otherwise.