Skip to main content

core.medplumclient.getcachedreference

Home > @medplum/core > MedplumClient > getCachedReference

MedplumClient.getCachedReference() method

Returns a cached resource if it is available.

Signature:

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

Parameters

ParameterTypeDescription
referenceReference<T>The FHIR reference.

Returns:

T | undefined

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