View raw Markdown
type: fhirpath-functionfunction: countcategory: Existencesection: 5.1.10source: fhirpath/functions.json

FHIRPath Function: count

Returns the integer count of the number of items in the input collection. Returns 0 when the input collection is empty.

Summary

Description

Returns the integer count of the number of items in the input collection. Returns 0 when the input collection is empty.

Arguments

Type Mapping

Example

Patient.name.count() // returns the number of name elements