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

Parameter

Type

Description

resource

T

The FHIR reesource.

Returns:

Reference<T>

A reference resource.