Skip to main content

core.getreferencestring

Home > @medplum/core > getReferenceString

getReferenceString() function

Returns a reference string for a resource.

Signature:

export declare function getReferenceString(input: (Reference & {
reference: string;
}) | WithId<Resource>): string;

Parameters

Parameter

Type

Description

input

(Reference & { reference: string; }) | WithId<Resource>

The FHIR resource or reference.

Returns:

string

A reference string of the form resourceType/id.