Skip to main content

core.resolveid

Home > @medplum/core > resolveId

resolveId() function

Returns the ID portion of a reference.

Signature:

export declare function resolveId(input: Reference | Resource | undefined): string | undefined;

Parameters

ParameterTypeDescription
inputReference | Resource | undefinedA FHIR reference or resource.

Returns:

string | undefined

The ID portion of a reference.