View raw Markdown
type: fhirpath-functionfunction: aggregatecategory: Aggregatessection: 7.1source: fhirpath/functions.json

FHIRPath Function: aggregate

No canonical section match found in index.md.

Summary

Description

Performs general-purpose aggregation by evaluating the aggregator expression for each element of the input collection. Within this expression, the standard iteration variables of $this and $index can be accessed, but also a $total aggregation variable.

Arguments

Type Mapping

Example

value.aggregate($this + $total, 0)