View raw Markdown
type: fhirpath-functionfunction: allcategory: Existencesection: 5.1.3source: fhirpath/functions.json

FHIRPath Function: all

This is a scoped function: The criteria argument is evaluated for each item (setting $this and $index before each iteration); if all return true then the function returns true, otherwise false. An empty input collection returns true.

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

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)