Skip to main content

core.medplumclient.fhirsearchurl

Home > @medplum/core > MedplumClient > fhirSearchUrl

MedplumClient.fhirSearchUrl() method

Builds a FHIR search URL from a search query or structured query object.

Signature:

fhirSearchUrl(resourceType: ResourceType, query: QueryTypes): URL;

Parameters

ParameterTypeDescription
resourceTypeResourceTypeThe FHIR resource type.
queryQueryTypesThe FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor.

Returns:

URL

The well-formed FHIR URL.