## evalFhirPathTyped() function

Evaluates a FHIRPath expression against a resource or other object.

**Signature:**

```typescript
export declare function evalFhirPathTyped(expression: string | FhirPathAtom, input: TypedValue[], variables?: Record<string, TypedValue>, cache?: LRUCache<FhirPathAtom> | undefined): (TypedValue | TypedValueWithPath)[];
```

## Parameters

| Parameter  | Type                                                       | Description                                           |
|------------|------------------------------------------------------------|-------------------------------------------------------|
| expression | string \| [FhirPathAtom](/content/docs/sdk/core.fhirpathatom) | The FHIRPath expression to evaluate.                 |
| input      | [TypedValue](/content/docs/sdk/core.typedvalue)                   | The resource or object to evaluate the expression against. |
| variables  | Record<string, [TypedValue](/content/docs/sdk/core.typedvalue) > | _(Optional)_ A map of variables for eval input.      |
| cache      | [LRUCache](/content/docs/sdk/core.lrucache) < [FhirPathAtom](/content/docs/sdk/core.fhirpathatom) > \| undefined | _(Optional)_ Cache for parsed ASTs.                  |

**Returns:**

( [TypedValue](/content/docs/sdk/core.typedvalue) \| [TypedValueWithPath](/content/docs/sdk/core.typedvaluewithpath))[]

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