--- type: "fhirpath-function" title: "FHIRPath Function: tail" function: "tail" category: "Subsetting" section: "5.3.5" source: "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 - none ## Type Mapping - `Any-Any` ## Example ```fhirpath Patient.name.tail() // returns all but the first name element ```