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)
19 $data = formFetch("form_prior_auth", $id);
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") {
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>";
38 if ($count == $cols) {
45 print "</tr></table>";