3 * Copyright Medical Information Integration,LLC info@mi-squared.com
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
10 /* include globals.php, required. */
11 require_once('../../globals.php');
13 /* include api.inc, required. */
14 require_once($GLOBALS['srcdir'].'/api.inc');
16 /* include our smarty derived controller class. */
17 require('C_FormPainMap.class.php');
20 * @brief report function, to display a form in the 'view enounter' page, and in the medical records reports.
22 function painmap_report( $pid, $encounter, $cols, $id) {
23 /* Create a form object. */
24 $c = new C_FormPainMap();
25 /* Render the form. */
26 echo $c->report_action($id);