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

Parameter

Type

Description

expression

string

The FHIRPath expression to parse.

input

unknown

The resource or object to evaluate the expression against.

Returns:

unknown[]

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