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

Parameter

Type

Description

resourceType

ResourceType

The FHIR resource type.

query

QueryTypes

The FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor.

Returns:

URL

The well-formed FHIR URL.