You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
1.4 KiB

<?php
// Copyright (C) 2006 Rod Roark <rod@sunsetsystems.com>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
require_once("../../globals.php");
require_once($GLOBALS["srcdir"] . "/api.inc");
function treatment_protocols_report($pid, $encounter, $cols, $id)
{
/****
$cols = 1; // force always 1 column
$count = 0;
$data = sqlQuery("SELECT * " .
"FROM form_treatment_protocols WHERE " .
"id = '$id'");
if ($data) {
print "<table cellpadding='0' cellspacing='0'>\n<tr>\n";
foreach($data as $key => $value) {
if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" ||
$key == "authorized" || $key == "activity" || $key == "date" ||
$value == "" || $value == "0" || $value == "0.00") {
continue;
}
if ($key == 'followup_required') {
switch ($value) {
case '1': $value = 'Yes'; break;
case '2': $value = 'Pending investigation'; break;
}
}
$key=ucwords(str_replace("_"," ",$key));
print "<td valign='top'><span class='bold'>" . text($key) . ": </span><span class='text'>" . text($value) . " &nbsp;</span></td>\n";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr>\n<tr>\n";
}
}
print "</tr>\n</table>\n";
}
****/
}