Initial import.
[openemr.git] / contrib / forms / vitals / report.php
blob866180152ce15b170e57f1df1ae04a463d25bea2
1 <?php
2 //
4 include_once("../../globals.php");
5 include_once($GLOBALS["srcdir"]."/api.inc");
7 function vitals_report( $pid, $encounter, $cols, $id) {
8 $count = 0;
9 $data = formFetch("form_vitals", $id);
10 if ($data) :
11 print "<table span class=text><tr>";
12 foreach($data as $key => $value) {
13 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") continue;
15 if ($value == "on") $value = "yes";
17 $key=ucwords(str_replace("_"," ",$key));
19 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
21 $count++;
22 if ($count == $cols) {
23 $count = 0;
24 print "</tr><tr>\n";
28 print "</tr></table>";
29 endif;
32 ?>