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>(url: T['resourceType'] | URL | string, query?: Record<string, string[] | string | undefined>): SearchRequest<T>;
Parameters
Parameter | Type | Description |
---|---|---|
url | T['resourceType'] | URL | string | The original search URL or the FHIR resource type. |
query | Record<string, string[] | string | undefined> | (Optional) Optional collection of additional query string parameters. |
Returns:
A parsed SearchRequest.