Example #1
0
 * See the file "copy_notice.txt" for the licence notice
 */
//-------------------------------------------------------------------------------------------------------------------------------------
$debug = false;
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$add_breakfile = "&pid=" . $_REQUEST['pid'] . "&encounter_nr=" . $_REQUEST['encounter_nr'];
$filename = "arv_menu.php";
$breakfile = "modules/arv_2/arv_menu.php";
//------------------------------------------------------------------------------------------------------------
if (empty($_REQUEST['pid']) or empty($_REQUEST['encounter_nr'])) {
    $error_messages = "<div class=\"errorMessages\">No patient is selected! </div>";
    require "gui/gui_arv_visit.php";
    die;
}
$o_arv_patient = new ART_patient($_REQUEST['pid']);
$o_arv_patient->getARTData();
$o_arv_visit = new ARV_Visit($_REQUEST['encounter_nr'], $_REQUEST['visit_id'], $o_arv_patient->getRegistrationID());
$visit_table_rows = $o_arv_patient->displayAllARTVisits();
$art_info = $o_arv_patient->getshortARTSummary();
if (isset($_REQUEST['submit'])) {
    $o_val =& new Validator($o_arv_visit->getDefaultData(), $_REQUEST);
    $o_val->set_rule('visit_date', 'rule_required');
    $o_val->set_rule('visit_date', 'rule_date');
    $o_val->set_rule('adher_code', 'rule_required');
    $o_val->set_rule('functional_status', 'rule_required');
    $o_val->set_rule('signature', 'rule_required');
    $o_val->set_rule('visit_type', 'rule_required');
    $o_val->set_rule('clinical_stage', 'rule_required');
    $o_val->set_rule('status', 'rule_required');
    $o_val->set_rule('regimen_days', 'rule_numeric');
Example #2
0
require_once $root_path . 'include/care_api_classes/class_tz_arv_patient.php';
//-----------------------------------------------------------------------------------------------------------------------------
/**
* CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
* GNU General Public License
* Copyright 2007 Dorothea Reichert based on the development of Elpidio Latorilla (2002,2003,2004,2005)
* elpidio@care2x.org, meggle@merotech.de
*
* See the file "copy_notice.txt" for the licence notice
*/
//-------------------------------------------------------------------------------------------------------------------------------------
$breakfile = "modules/arv_2/arv_menu.php";
$add_breakfile = "&pid=" . $_REQUEST['pid'] . "&encounter_nr=" . $_REQUEST['encounter_nr'];
if (empty($_REQUEST['pid']) or empty($_REQUEST['encounter_nr'])) {
    $error_messages = "<div class=\"errorMessages\">No patient is selected! </div>";
    require "gui/gui_arv_overview.php";
    die;
}
if (!($o_arv_patient = new ART_patient($_REQUEST['pid']))) {
    require "gui/gui_arv_overview.php";
    die;
}
$facility_info = $o_arv_patient->getFacilityInfo();
$registration_data = $o_arv_patient->getRegistrationData();
$art_data = $o_arv_patient->getARTData();
$visit_table_rows = $o_arv_patient->displayAllARTVisits();
if ($_REQUEST['mode'] == 'print') {
    require "gui/gui_arv_overview_print.php";
} else {
    require "gui/gui_arv_overview.php";
}
 #if($patient['insurance_class_nr']!=2) $sBuffer = $sBuffer.'<font color="#ff0000">';
 if ($patient['insurance_ID']) {
     if ($ins_obj->CheckCurrentContractValidity($patient['insurance_ID'])) {
         $insurance_name = $ins_obj->GetName_insurance_from_id($patient['insurance_ID']);
     }
     $smarty->assign('sInsuranceType', substr($insurance_name, 0, 15));
 } else {
     $smarty->assign('sInsuranceType', substr($insurance_name, 0, 15));
 }
 if ($edit) {
     /* MEROTECH:
     			Commented out for selian town clinic by Alexander Irro
     			$smarty->assign('sAdmitDataIcon','<a href="'.$root_path.'modules/registration_admission/aufnahme_pass.php'.URL_APPEND.'&target=search&fwd_nr='.$patient['encounter_nr'].'" title="'.$LDAdmissionData.' : '.$LDClk2Show.'"><img '.createComIcon($root_path,'pdata.gif','0','',TRUE).' alt="'.$LDAdmissionData.' : '.$LDClk2Show.'"></a>');
     			*/
     if ($dept_nr == 55) {
         $o_arv_patient = new ART_patient($patient['pid']);
         if ($o_arv_patient->is_arv_admitted($patient['pid'])) {
             $temp_image = "<a href=\"javascript:getARV('" . $patient['pid'] . "','" . $patient['encounter_nr'] . "')\"><img " . createComIcon($root_path, 'ball_gray.png', '0', '', TRUE) . " alt=\"inARV\"></a>";
         } else {
             $temp_image = "<a href=\"javascript:getARV('" . $patient['pid'] . "','" . $patient['encounter_nr'] . "')\"><img " . createComIcon($root_path, 'ball_red.png', '0', '', TRUE) . " alt=\"not_inARV\"></a>";
         }
     }
     if ($dept_nr == 7) {
         //$o_arv_patient=&new ART_patient($patient['pid']);
         //if($o_arv_patient->is_arv_admitted($patient['pid'])) {
         //$temp_image="<a href=\"javascript:getEyeclinic('".$patient['pid']."','".$patient['encounter_nr']."')\"><img ".createComIcon($root_path,'ball_gray.png','0','',TRUE)." alt=\"inARV\"></a>";
         //}
         //else {
         $temp_image = "<a href=\"javascript:getEyeclinic('" . $patient['pid'] . "','" . $patient['encounter_nr'] . "')\"><img width=17 height=17 " . createComIcon($root_path, 'eye.gif', '0', '', TRUE) . " alt=\"Eye Examination\"></a>";
         //}
     }