Skip to main content

core.createreference

Home > @medplum/core > createReference

createReference() function

Creates a reference resource.

Signature:

export declare function createReference<T extends Resource>(resource: T): Reference<T>;

Parameters

ParameterTypeDescription
resourceTThe FHIR reesource.

Returns:

Reference<T>

A reference resource.