--- type: "fhirpath-function" title: "FHIRPath Function: upper" function: "upper" category: "String Manipulation" section: "5.6.7" source: "fhirpath/functions.json" --- # FHIRPath Function: upper Returns the input string with all characters converted to upper case. If the input collection is empty, the result is empty. If the input collection contains multiple items, the evaluation of the expression will end and signal an error to the calling environment. ``` fhirpath 'abcdefg'.upper() // 'ABCDEFG' 'AbCdefg'.upper() // 'ABCDEFG' ``` ## Summary - **Category**: String Manipulation - **Section**: `5.6.7` - **Return Type**: `String` - **Empty Input Result**: `empty` - **Errors on Multiple Input**: `true` ## Description Returns the input string with all characters converted to upper case. ## Arguments - none ## Type Mapping - `String-String` ## Example ```fhirpath 'abcdefg'.upper() // 'ABCDEFG' 'AbCdefg'.upper() // 'ABCDEFG' ```