--- type: "fhirpath-function" title: "FHIRPath Function: convertsToLong" function: "convertsToLong" category: "Conversion" section: "5.5.3.4" source: "fhirpath/functions.json" --- # FHIRPath Function: convertsToLong _No canonical section match found in index.md._ ## Summary - **Category**: Conversion - **Section**: `5.5.3.4` - **Return Type**: `Boolean` - **Empty Input Result**: `empty` - **Errors on Multiple Input**: `true` ## Description If the input collection contains a single item, this function will return true if the item can be converted to a Long value. ## Arguments - none ## Type Mapping - `Any-Boolean` ## Example ```fhirpath '123'.convertsToLong() // returns true 'abc'.convertsToLong() // returns false ```