fix: set default x12 partner for item in billing manager (#7513)
[openemr.git] / interface / forms / prior_auth / report.php
blob7a6282e547e2dadd6fa69db27c618fa935505cf7
1 <?php
3 /**
4 * prior auth form
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 require_once(dirname(__FILE__) . '/../../globals.php');
14 require_once($GLOBALS["srcdir"] . "/api.inc.php");
16 function prior_auth_report($pid, $encounter, $cols, $id)
18 $count = 0;
19 $data = formFetch("form_prior_auth", $id);
20 if ($data) {
21 print "<table><tr>";
22 foreach ($data as $key => $value) {
23 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
24 continue;
27 if ($value == "on") {
28 $value = "yes";
31 if ($key == "from_date" || "to_date") {
32 $value = oeFormatShortDate($value);
35 $key = ucwords(str_replace("_", " ", $key));
36 print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . text($value) . "</span></td>";
37 $count++;
38 if ($count == $cols) {
39 $count = 0;
40 print "</tr><tr>\n";
45 print "</tr></table>";