Skip to main content

core.medplumclient.fhirurl

Home > @medplum/core > MedplumClient > fhirUrl

MedplumClient.fhirUrl() method

Builds a FHIR URL from a collection of URL path components. For example, fhirUrl('Patient', '123') returns fhir/R4/Patient/123.

Signature:

fhirUrl(...path: string[]): URL;

Parameters

Parameter

Type

Description

path

string[]

The path component of the URL.

Returns:

URL

The well-formed FHIR URL.