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