/** * @brief report function, to display a form in the 'view enounter' page, and in the medical records reports. */ function painmap_report($pid, $encounter, $cols, $id) { /* Create a form object. */ $c = new C_FormPainMap(); /* Render the form. */ echo $c->report_action($id); }