Skip to main content

core.evalfhirpathtyped

Home > @medplum/core > evalFhirPathTyped

evalFhirPathTyped() function

Evaluates a FHIRPath expression against a resource or other object.

Signature:

export declare function evalFhirPathTyped(expression: string, input: TypedValue[], variables?: Record<string, TypedValue>): TypedValue[];

Parameters

ParameterTypeDescription
expressionstringThe FHIRPath expression to parse.
inputTypedValue[]The resource or object to evaluate the expression against.
variablesRecord<string, TypedValue>(Optional) A map of variables for eval input.

Returns:

TypedValue[]

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