Skip to main content

core.evalfhirpath

Home > @medplum/core > evalFhirPath

evalFhirPath() function

Evaluates a FHIRPath expression against a resource or other object.

Signature:

export declare function evalFhirPath(expression: string, input: unknown): unknown[];

Parameters

ParameterTypeDescription
expressionstringThe FHIRPath expression to parse.
inputunknownThe resource or object to evaluate the expression against.

Returns:

unknown[]

The result of the FHIRPath expression against the resource or object.