CEILING Function
Use:
Calculates the ceiling of the provided value.
Syntax:
{CEILING(<<value>>)}
Arguments:
<<value>> Numeric or decimal value
Returns:
The rounds up to the integer.
Example:
{CEILING(7.2)}
Result: 8
Recommendations
Explore
NextGen® Enterprise EHR Template Editor Help 8
FLOOR Function
Use: Calculates the floor of the provided value. Syntax: {FLOOR( «value» )} Arguments: «value» Numeric or decimal value Returns: The rounds down to the integer. Example: {CEILING(7.2) Result: 7 Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
ROUND Function
Use: Rounds the provided value to the specified number of decimal places. Syntax: {ROUND( «value» ,«digits» )} Arguments: «value» Numeric or decimal value to be rounded«digits» Number or decimal places to round Returns: The rounded decimal value. Example: {ROUND(76.456, 1)} Result: 76.5 Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
SQRT Function
Use: Calculates the square root of the provided value Syntax: {SQRT(<<value>>)} Arguments: <<value>> Numeric or decimal value Returns: The calculated square root as decimal Example: {SQRT(144)} Result: 12 Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
LOG10 Function
Use: Calculates the base 10 logarithm of a number. Syntax: {LOG10 (<<value>>)} Arguments: <<value>> Value to be log10 of. Returns: Returns the base 10 logarithm of a value. Example: {Log10(100)}Result: 2 Parent topic: Functions
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
ISVALID Function
Use: Checks a diagnosis (ICD) or procedure(CPT4) code for validity. The IFELSE function can be used to display a message to the user. For diagnoses, the ISVALID function can be used to compare ICD-9 code effective and expiration dates to the encounter date. When a diagnosis search is made for an invalid ICD-9 code, the window opens in ICD Legacy Mapping mode, showing the equivalent ICD-10 codes. If an ICD-9 or CPT code has a delete_ind = Y, the function returns an invalid result. Syntax: {ISVALID( «table» , «code1», «code2»,,,, )} Arguments: «table» DIAG or PROC«code» Field(s) that contain the diagnosis code or procedure code Returns: 1 = Valid 0 = Invalid Example 1: Data entry field for procedure code = template_name_.Proc_code}{ISVALID( PROC , {template_name_.Proc_code})} Result: 1 for a valid code Example 2: Data entry field for diagnosis code = template_name_.Diag_code}{ISVALID( DIAG , {template_name_.Diag_code})} Result: 0 for an invalid code Parent topic: Functions