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> & {
reference: string;
};

Parameters

Parameter

Type

Description

resource

T

The FHIR resource.

Returns:

Reference<T> & { reference: string; }

A reference resource.