type: fhirpath-functionfunction: allcategory: Existencesection: 5.1.3source: fhirpath/functions.json
FHIRPath Function: all
This is a scoped function: The
criteriaargument is evaluated for each item (setting$thisand$indexbefore each iteration); if all returntruethen the function returnstrue, otherwisefalse. An empty input collection returnstrue.
Returns true if for every item in the input collection, criteria evaluates to true. Otherwise, the result is false. If the input collection is empty ({ }), the result is true.
generalPractitioner.all($this.resolve() is Practitioner)
This example returns true if all of the generalPractitioner elements are of type Practitioner.
Summary
- Category: Existence
- Section:
5.1.3 - Return Type:
Boolean - Empty Input Result:
true - Errors on Multiple Input:
false
Description
Returns true if for every element in the input collection, criteria evaluates to true. Otherwise, the result is false.
Arguments
Type Mapping
Example
generalPractitioner.all($this.resolve() is Practitioner)