NextGen Knowledge Center

MINE Database Function

Use:Displays the minimum 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:
{MINE( «field» )}
Arguments:

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

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

Result: 156