Added 3 forms (Aftercare Plan, Transfer Summary, Treatment Plan)
[openemr.git] / interface / forms / transfer_summary / report.php
blobb9e9a53407bf0f4acd395756adf6562cdb4cce46
1 <?php
2 /**
4 * Copyright (C) 2012-2013 Naina Mohamed <naina@capminds.com> CapMinds Technologies
6 * LICENSE: This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 3
9 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
17 * @package OpenEMR
18 * @author Naina Mohamed <naina@capminds.com>
19 * @link http://www.open-emr.org
24 include_once("../../globals.php");
25 include_once($GLOBALS["srcdir"]."/api.inc");
26 function transfer_summary_report( $pid, $encounter, $cols, $id) {
27 $count = 0;
28 $data = formFetch("form_transfer_summary", $id);
29 if ($data) {
30 print "<table><tr>";
31 foreach($data as $key => $value) {
32 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
33 continue;
35 if ($value == "on") {
36 $value = "yes";
38 $key=ucwords(str_replace("_"," ",$key));
39 print "<td><span class=bold>".xlt($key). ": </span><span class=text>".text($value)."</span></td>";
40 $count++;
41 if ($count == $cols) {
42 $count = 0;
43 print "</tr><tr>\n";
47 print "</tr></table>";
49 ?>