--- type: "fhir-fhirpath-function" title: "FHIR FHIRPath Function: toString" source: "source/fhirpath.html" --- # FHIR FHIRPath Function: toString This page is part of **FHIR FHIRPath** (FHIR-specific extensions). Base spec lives at [FHIRPath](/fhirpath). `toString() : string` If the input collection contains a single item, this function will return a single String if the type is a primitive, and it has a value (e.g. if `hasValue() = true`), and the primitive type has a System type for which [toString() is defined](https://hl7.org/fhirpath/N1/#tostring-string). Otherwise the result is an empty collection. Patient.birthDate.toString() * * * [Back to FHIR FHIRPath](/fhir-fhirpath)