feat: upgrade icd10 2025 (#7713)
[openemr.git] / contrib / forms / soap2 / report.php
blob8789e4f1f772fc6b9f241d1041698eca12a9c1e7
1 <?php
3 //------------Forms generated from formsWiz
4 require_once("../../globals.php");
5 require_once($GLOBALS["srcdir"] . "/api.inc.php");
6 function soap2_report($pid, $encounter, $cols, $id)
8 $count = 0;
9 $data = formFetch("form_soap2", $id);
10 if ($data) {
11 print "<table><tr>";
12 foreach ($data as $key => $value) {
13 if (
14 $key == "id" || $key == "pid" || $key == "user" ||
15 $key == "groupname" || $key == "authorized" || $key == "activity" ||
16 $key == "date" || $value == "" || $value == "0000-00-00 00:00:00"
17 ) {
18 continue;
21 if ($value == "on") {
22 $value = "yes";
25 $key = ucwords(str_replace("_", " ", $key));
26 print "<td><span class=bold>" . text($key) . ": </span><span class=text>" . text($value) . "</span></td>";
27 $count++;
28 if ($count == $cols) {
29 $count = 0;
30 print "</tr><tr>\n";
35 print "</tr></table>";