Skip to main content

core.parsefhirpath

Home > @medplum/core > parseFhirPath

parseFhirPath() function

Parses a FHIRPath expression into an AST. The result can be used to evaluate the expression against a resource or other object. This method is useful if you know that you will evaluate the same expression many times against different resources.

Signature:

export declare function parseFhirPath(input: string): FhirPathAtom;

Parameters

ParameterTypeDescription
inputstringThe FHIRPath expression to parse.

Returns:

FhirPathAtom

The AST representing the expression.