--- type: "fhirpath-function" title: "FHIRPath Function: toString" function: "toString" category: "Conversion" section: "5.5.8.1" source: "fhirpath/functions.json" --- # FHIRPath Function: toString _No canonical section match found in index.md._ ## Summary - **Category**: Conversion - **Section**: `5.5.8.1` - **Return Type**: `String` - **Empty Input Result**: `empty` - **Errors on Multiple Input**: `true` ## Description If the input collection contains a single item, this function will return a single String if the item is a String, an Integer, Decimal, Date, Time, DateTime, or Quantity, or a Boolean. ## Arguments - none ## Type Mapping - `String-String` - `Integer-String` - `Decimal-String` - `Date-String` - `Time-String` - `DateTime-String` - `Quantity-String` - `Boolean-String` ## Example ```fhirpath 123.toString() // returns '123' ```