REVERSE String Function
Use:
Reverses the characters in a string
Syntax:
{REVERSE( «string» )}
Arguments:
«string» Character string to be reversed
Returns:
The character string in reverse order
Example:
{REVERSE( 123 )}
Result: 321
Recommendations
Explore
NextGen® Enterprise EHR Template Editor Help 8
REPEAT String Function
Use: Repeats a string a specified number of times Syntax: {REPEAT( «string» , «num»)} Arguments: «string» String value to repeat«num» Number of times to repeat Returns: A string of the repeated substrings Example: {REPEAT( XYZ , 3)} Result: XYZXYZXYZ Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
REPLACE String Function
Use: Replaces all occurrences of a value with another value in a character string Syntax: {REPLACE( «string» , «old» , «new» )} Arguments: «string» Character string to be searched«old» String value to be found«new» Replacement string value Returns: The character string with the replaced value Example: Field = txt_field{template_name_.txt_field} = NG Healthcare Information Systems, LLC{REPLACE( {template_name_.txt_field}, NG , Nextgen )} Result: NextGen Healthcare Information Systems, LLC Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
RIGHT String Function
Use: Extracts the specified rightmost characters in a character string Syntax: {RIGHT( «string» , «num» )} Arguments: «string» Character string to be evaluated«num» Number of characters from the right to return Returns: The specified number of characters on the right in the character string Example: Field = txt_field{template_name_.txt_field} = John Shaw{RIGHT( {template_name_.txt_field}, 4 )} Result: Shaw Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
FORMAT String Function
Use: Formats a specific string Syntax: {FORMAT( «string» )} Arguments: «string» Character string to be formatted, plus the parameters {0}first parameter, {1} second parameter, {2} third parameter, and so on {n} creates a new line character {t} creates a tab character Returns: A formatted string Example: {FORMAT( "{0}{n}{1}", {local.name}, {local.address} )} {0} is the first parameter{n} acts as a new line character{1} is the second parameter Result: John Doe 123 Any Street. Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
LEFT String Function
Use: Extracts the specified leftmost characters in a character string Syntax: {LEFT( «string» , «num» )} Arguments: «string» Character string to be evaluated«num» Number of characters from the left to return Returns: The specified number of characters on the left in the character string Example: Field = txt_field{template_name_.txt_field} = Nextgen Healthcare Information Systems, LLC{LEFT( {template_name_.txt_field},7 )} Result: Nextgen Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
LCASE String Function
Use: Converts a character string from uppercase to lowercase Syntax: {LCASE( «string» )} Arguments: «string» Character string to convert to lowercase Returns: A string in lowercase characters Example: Field = txt_field{template_name_.txt_field} = UPPER CASE{LCASE( {template_name_.txt_field} )} Result: upper case Parent topic: Functions