type: fhirpath-functionfunction: anyTruecategory: Existencesection: 5.1.5source: 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]:
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
Type Mapping
Example
Observation.select(component.value > 90 'mm[Hg]').anyTrue()