4 * transfer summary form.
7 * @link http://www.open-emr.org
8 * @author Naina Mohamed <naina@capminds.com>
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2012-2013 Naina Mohamed <naina@capminds.com> CapMinds Technologies
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 transfer_summary_report($pid, $encounter, $cols, $id)
21 $data = formFetch("form_transfer_summary", $id);
24 foreach ($data as $key => $value) {
25 if ($key == "id" ||
$key == "pid" ||
$key == "user" ||
$key == "groupname" ||
$key == "authorized" ||
$key == "activity" ||
$key == "date" ||
$value == "" ||
$value == "0000-00-00 00:00:00") {
33 $key = ucwords(str_replace("_", " ", $key));
34 print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . text($value) . "</span></td>";
36 if ($count == $cols) {
43 print "</tr></table>";