예제 #1
0
    $TP_href_2 = $url_prepend . '_alltext';
    $TP_href_3 = $url_prepend . '_plain';
    $TP_href_4 = $url_prepend . '_data';
    $TP_selector =& $TP_obj->load('registration_admission/tp_sick_confirm_selectstyle.htm');
    eval("echo {$TP_selector};");
    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