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 | Resource): string;

Parameters

ParameterTypeDescription
inputReference | ResourceThe FHIR resource or reference.

Returns:

string

A reference string of the form resourceType/id.