NextGen Knowledge Center

MAXE Database Function

Use:Displays the maximum value of a numeric field for the currently selected patient for the current encounter.

You can use this function with a Medical Records Extended Popup template.

Syntax:
{MAXE( «field» )}
Arguments:

«field»
    table_name.field_name (no braces)
Returns:The maximum numeric value
Example:

Field = medical_record_ext_popup_.txt_mrepu_numeric_field
Two encounters, three records per encounter
(324, 356, 213, 278, 410, 156)
{MAX( medical_record_ext_popup_.txt_mrepu_numeric_field )}

Result: 410