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

Parameter

Type

Description

reference

Reference<T>

The FHIR reference.

Returns:

T | undefined

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