4 * ankleinjury report.php
7 * @link http://www.open-emr.org
8 * @author Nikolai Vitsyn
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2004 Nikolai Vitsyn
11 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
12 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
15 require_once(dirname(__FILE__
) . '/../../globals.php');
16 require_once($GLOBALS["srcdir"] . "/api.inc.php");
18 function ankleinjury_report($pid, $encounter, $cols, $id)
21 $data = formFetch("form_ankleinjury", $id);
23 print "<table>\n<tr>\n";
24 foreach ($data as $key => $value) {
26 $key == "id" ||
$key == "pid" ||
$key == "user" ||
$key == "groupname" ||
27 $key == "authorized" ||
$key == "activity" ||
$key == "date" ||
28 $value == "" ||
$value == "0000-00-00 00:00:00"
37 $key = ucwords(str_replace("_", " ", $key));
38 $key = str_replace("Ankle ", "", $key);
39 $key = str_replace("Injuary", "Injury", $key);
40 print "<td valign='top'><span class='bold'>" . xlt($key) . ": </span><span class='text'>" . text($value) . "</span></td>\n";
42 if ($count == $cols) {
44 print "</tr>\n<tr>\n";
48 print "</tr>\n</table>\n";