Example #1
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";
}
Example #2
0
 */
//-------------------------------------------------------------------------------------------------------------------------------------
$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');
    $o_val->set_rule('cd4', 'rule_numeric');