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
Parameter  | Type  | Description  | 
|---|---|---|
expression  | string  | The FHIRPath expression to parse.  | 
input  | The resource or object to evaluate the expression against.  | |
variables  | Record<string, TypedValue>  | (Optional) A map of variables for eval input.  | 
Returns:
The result of the FHIRPath expression against the resource or object.