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
Recommendations
Explore
NextGen® Enterprise EHR Template Editor Help 8
ATTRIB Function
Use: Returns a particular Field attribute setting for passed in field name. Syntax: {ATTRIB( «name» , «field» )} Arguments: «name» Field attribute setting«field» Field name Returns: The particular field attribute setting. Example: {ATTRIB("KBM.CodifyField", {master_im.fieldvalue} )} Result: Returns True or False 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
ROWS Data Sheet Function
Use: Displays the number of rows in a data sheet on the template Syntax: {ROWS( «datasheet» )} Arguments: «datasheet» Name of the data sheet Note: The data sheet must be on the same template as the function. Returns: The number of data sheet rows Example: Data sheet vital_signs{ROWS( vital_signs )} Result: 6 Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
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 Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
ASSIGN Function
Use: Assigns the source value to a list of destination parameters (fields and/or variables). Syntax: {ASSIGN( «source» , «dest1», «dest2»,,,, )} Arguments: {source} Source value«dest1» Field or variable to be assigned the source value«dest2»,,,, (to «destn») Each additional field or variable to be assigned the source value Returns: The source value Example: Source value = ""dest1 = template_name_.field1dest2 = template_name_.field 2dest3 = @variable1{ASSIGN( "" , template_name_.field1 , template_name_.field2 , @variable1)} Result: An empty value is assigned to the destination fields and variable. Parent topic: Functions
NextGen® Enterprise EHR Template Editor Help 8
CALENDAR Function
Use: Displays a calendar for the user to select a date. Syntax: {CALENDAR( «calling field» , «do listpick» , «default» , «caption» )} Arguments: «calling field» (optional) The name of the field that receives the date value, or for a list pick event, the template field that the pick is made from«do listpick» (optional) 1 = true 0 = false«default» Default value displayed in the calendar when it opens. NextGen Healthcare recommends that you use the field that receives the date value as the default value. If this field already contains a date, the calendar displays that date when it opens. If the field is blank, the calendar displays the current date when it opens. If a user opens the calendar but then clicks the Cancel button or the Close window X button, the following results apply: If the field was blank, it remains blank; if the field has an existing value, that value is retained. Note: If you use the @Today function as the default value, the current date is entered in the receiving fi