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
Parameter | Type | Description |
---|---|---|
resourceType | T['resourceType'] | The FHIR resource type. |
query | Record<string, string[] | string | undefined> | The collection of query string parameters. |
Returns:
A parsed SearchRequest.