exit; } //require_once($root_path.'include/inc_config_color.php'); require_once $root_path . 'include/inc_date_format_functions.php'; require_once $root_path . 'include/inc_editor_fx.php'; require_once $root_path . 'include/care_api_classes/class_person.php'; # Load the encounter class require_once $root_path . 'include/care_api_classes/class_encounter.php'; $enc_obj = new Encounter($_SESSION['sess_full_en']); if (!isset($mode) || empty($mode)) { $sickconfirm_obj =& $enc_obj->allSicknessConfirm(); if ($rows = $enc_obj->LastRecordCount()) { $mode = 'show'; # If $get_nr is non-empty, get the single record if (isset($get_nr) && $get_nr) { if (!($single_obj =& $enc_obj->getSicknessConfirm($get_nr))) { $get_nr = 0; } } else { $get_nr = 0; } } else { $mode = ''; } } # Get the insurance data of the encounter if ($insure_obj = $enc_obj->EncounterInsuranceData()) { $insurance = $insure_obj->FetchRow(); } else { $insurance = false; }