* @author Brady Miller * @copyright Copyright (c) 2012-2013 Naina Mohamed CapMinds Technologies * @copyright Copyright (c) 2019 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once(dirname(__FILE__) . '/../../globals.php'); require_once($GLOBALS["srcdir"] . "/api.inc"); function transfer_summary_report($pid, $encounter, $cols, $id) { $count = 0; $data = formFetch("form_transfer_summary", $id); if ($data) { print ""; foreach ($data as $key => $value) { if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") { continue; } if ($value == "on") { $value = "yes"; } $key = ucwords(str_replace("_", " ", $key)); print ""; $count++; if ($count == $cols) { $count = 0; print "\n"; } } } print "
" . xlt($key) . ": " . text($value) . "
"; }