4 * Work/School Note Form report.php
7 * @link http://www.open-emr.org
8 * @author Nikolai Vitsyn
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2004-2005 Nikolai Vitsyn
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
17 require_once(dirname(__FILE__
) . '/../../globals.php');
18 require_once($GLOBALS["srcdir"] . "/api.inc.php");
20 function note_report($pid, $encounter, $cols, $id)
23 $data = formFetch("form_note", $id);
26 foreach ($data as $key => $value) {
31 $key == "groupname" ||
32 $key == "authorized" ||
36 $value == "0000-00-00 00:00:00"
45 $key = ucwords(str_replace("_", " ", $key));
48 if ($key == "Note Type") {
49 print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . xlt($value) . "</span></td>";
50 } elseif ($key == "Date Of Signature") {
51 print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . oeFormatShortDate($value) . "</span></td>";
53 print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . text($value) . "</span></td>";
57 if ($count == $cols) {
64 print "</tr></table>";