View raw Markdown
type: fhirpath-functionfunction: sumcategory: Aggregatessection: 7.2source: fhirpath/functions.json

FHIRPath Function: sum

No canonical section match found in index.md.

Summary

Description

Returns the sum of all elements in the input collection (in the same type).

Arguments

Type Mapping

Example

(1.0 | 2.0 | 3.0).sum() // 6.0