type: fhirpath-functionfunction: tailcategory: Subsettingsection: 5.3.5source: fhirpath/functions.json
FHIRPath Function: tail
Returns a collection containing all but the first item in the input collection. Will return an empty collection if the input collection has no items, or only one item.
Summary
- Category: Subsetting
- Section:
5.3.5 - Return Type:
collection - Empty Input Result:
empty - Errors on Multiple Input:
false
Description
Returns a collection containing all but the first item in the input collection.
Arguments
Type Mapping
Example
Patient.name.tail() // returns all but the first name element