core.getreferencestring | Medplum
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 |
The FHIR resource or reference. |
Returns:
string
A reference string of the form resourceType/id.