core.parsexfhirquery
Home > @medplum/core > parseXFhirQuery
parseXFhirQuery() function
Parses an extended FHIR search criteria string (i.e. application/x-fhir-query), evaluating any embedded FHIRPath subexpressions (e.g. {{ %patient.id }}
) with the provided variables.
Signature:
export declare function parseXFhirQuery(query: string, variables: Record<string, TypedValue>): SearchRequest;
Parameters
Parameter | Type | Description |
---|---|---|
query | string | The X-Fhir-Query string to parse |
variables | Record<string, TypedValue> | Values to pass into embedded FHIRPath expressions |
Returns:
The parsed search request