--- type: "fhirpath-function" title: "FHIRPath Function: anyTrue" function: "anyTrue" category: "Existence" section: "5.1.5" source: "fhirpath/functions.json" --- # FHIRPath Function: anyTrue Takes a collection of Boolean values and returns `true` if any of the items are `true`. If all the items are `false`, or if the input is empty (`{ }`), the result is `false`. The following example returns `true` if any of the components of the Observation have a value greater than 90 mm[Hg]: ``` fhirpath Observation.select(component.value > 90 'mm[Hg]').anyTrue() ``` ## Summary - **Category**: Existence - **Section**: `5.1.5` - **Return Type**: `Boolean` - **Empty Input Result**: `false` - **Errors on Multiple Input**: `false` ## Description Takes a collection of Boolean values and returns `true` if any of the items are `true`. If all the items are `false`, the result is `false`. ## Arguments - none ## Type Mapping - `Boolean-Boolean` ## Example ```fhirpath Observation.select(component.value > 90 'mm[Hg]').anyTrue() ```