Skip to main content

core.parsesearchrequest

Home > @medplum/core > parseSearchRequest

parseSearchRequest() function

Parses a search URL into a search request.

Signature:

export declare function parseSearchRequest<T extends Resource = Resource>(resourceType: T['resourceType'], query: Record<string, string[] | string | undefined>): SearchRequest<T>;

Parameters

ParameterTypeDescription
resourceTypeT['resourceType']The FHIR resource type.
queryRecord<string, string[] | string | undefined>The collection of query string parameters.

Returns:

SearchRequest<T>

A parsed SearchRequest.