Ejemplo n.º 1
0
* elpidio@care2x.org, 
*
* See the file "copy_notice.txt" for the licence notice
*/
define('LANG_FILE', 'phone.php');
if (isset($user_origin) && $user_origin == 'pers') {
    $local_user = '******';
    $sBreakUrl = $root_path . 'modules/personell_admin/personell_register_show.php' . URL_APPEND . '&personell_nr=' . $nr;
} else {
    $local_user = '******';
    $sBreakUrl = 'phone.php' . URL_APPEND;
}
require_once $root_path . 'include/inc_front_chain_lang.php';
require_once $root_path . 'include/care_api_classes/class_personell.php';
/* Create employee object */
$employee = new Personell();
if (!isset($mode)) {
    $mode = '';
}
if (!isset($name)) {
    $name = '';
}
if (!isset($vorname)) {
    $vorname = '';
}
//$db->debug=true;
$newdata = 1;
$dbtable = 'care_phone';
$curdate = date('Y-m-d');
$curtime = date('H:i:s');
if ($mode == 'save' || $mode == 'update' && !empty($nr)) {
Ejemplo n.º 2
0
    $_SESSION['sess_pnr'];
}
if (!$_SESSION['sess_full_pnr']) {
    $_SESSION['sess_full_pnr'];
}
$patregtable = 'care_person';
// The table of the patient registration data
//$dbtable='care_encounter'; // The table of admission data
/* Create new person's insurance object */
$pinsure_obj = new PersonInsurance($pid);
/* Get the insurance classes */
$insurance_classes =& $pinsure_obj->getInsuranceClassInfoObject('class_nr,name,LD_var');
/* Create new person object */
$person_obj = new Person($pid);
/* Create personell object */
$personell_obj = new Personell();
if ($pid || $personell_nr) {
    # Get the patient global configs
    $glob_obj = new GlobalConfig($GLOBAL_CONFIG);
    $glob_obj->getConfig('personell_%');
    $glob_obj->getConfig('person_foto_path');
    # Check whether config path exists, else use default path
    $photo_path = is_dir($root_path . $GLOBAL_CONFIG['person_foto_path']) ? $GLOBAL_CONFIG['person_foto_path'] : $default_photo_path;
    if ($pid) {
        # Check whether the person is currently admitted. If yes jump to display admission data
        if ($mode != 'save' && ($personell_nr = $personell_obj->Exists($pid))) {
            header('Location:personell_register_show.php' . URL_REDIRECT_APPEND . '&personell_nr=' . $personell_nr . '&origin=admit&sem=isadmitted&target=personell_reg');
            exit;
        }
        # Get the related insurance data
        $p_insurance =& $pinsure_obj->getPersonInsuranceObject($pid);
Ejemplo n.º 3
0
* CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
* GNU General Public License
* Copyright 2002,2003,2004,2005 Elpidio Latorilla
* elpidio@care2x.org, 
*
* See the file "copy_notice.txt" for the licence notice
*/
//define('LANG_FILE','doctors.php');
if ($_SESSION['sess_user_origin'] == 'personell_admin') {
    $local_user = '******';
} else {
    $local_user = '******';
}
require_once $root_path . 'include/inc_front_chain_lang.php';
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$pers_obj->useAssignmentTable();
$data = array();
//$db->debug=true;
if ($mode != 'delete') {
    $data['personell_nr'] = $nr;
    $data['role_nr'] = 16;
    // 16 = nurse (role person)
    $data['location_type_nr'] = 1;
    // 1 = dept (location type)
    $data['location_nr'] = $dept_nr;
    $data['date_start'] = date('Y-m-d');
}
$data['modify_id'] = $_SESSION['sess_user_name'];
switch ($mode) {
    case 'save':
    if ($cfg['thispc_dept_nr']) {
        $dept_nr = $cfg['thispc_dept_nr'];
    } else {
        header('Location:doctors-select-dept.php' . URL_REDIRECT_APPEND . '&target=plist&retpath=' . $retpath);
        exit;
    }
}
$thisfile = basename($_SERVER['PHP_SELF']);
# Load the department list with oncall doctors
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept_obj->preloadDept($dept_nr);
$dept_list =& $dept_obj->getAllMedical();
# Load the dept doctors
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$doctors =& $pers_obj->getDoctorsOfDept($dept_nr);
# Load global values
$GLOBAL_CONFIG = array();
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$glob_obj = new GlobalConfig($GLOBAL_CONFIG);
$glob_obj->getConfig('personell_%');
# Set color values for the search mask
$searchmask_bgcolor = '#f3f3f3';
$searchprompt = $LDEntryPrompt;
$entry_block_bgcolor = '#fff3f3';
$entry_border_bgcolor = '#6666ee';
$entry_body_bgcolor = '#ffffff';
if (!isset($searchkey)) {
    $searchkey = '';
}
Ejemplo n.º 5
0
setcookie(ck_plan, "1");
if ($dept == "") {
    $dept = "plast";
}
if ($pmonth == "") {
    $pmonth = date('n');
}
if ($pyear == "") {
    $pyear = date('Y');
}
$thisfile = basename($_SERVER['PHP_SELF']);
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept_obj->preloadDept($dept_nr);
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$dutyplan =& $pers_obj->getDOCDutyplan($dept_nr, $pyear, $pmonth);
$firstday = date("w", mktime(0, 0, 0, $pmonth, 1, $pyear));
$maxdays = date("t", mktime(0, 0, 0, $pmonth, 1, $pyear));
switch ($retpath) {
    case "menu":
        $rettarget = 'doctors.php' . URL_APPEND;
        break;
    case "qview":
        $rettarget = 'doctors-dienst-schnellsicht.php' . URL_APPEND . '&hilitedept=' . $dept_nr;
        break;
    default:
        $rettarget = "javascript:window.history.back()";
}
# Prepare page title
$sTitle = "{$LDDoctors}::{$LDDutyPlan}::";
Ejemplo n.º 6
0
<?php

error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR);
require './roots.php';
require $root_path . 'include/inc_environment_global.php';
define('LANG_FILE', 'or.php');
$local_user = '******';
require_once $root_path . 'include/inc_front_chain_lang.php';
/* Create the personell object */
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$title = $LDOpPersonElements[$winid];
switch ($winid) {
    case 'operator':
        $element = 'operator';
        //$maxelement=10;
        $quickid = 'doctor';
        $quicklist = $pers_obj->getDoctorsOfDept($dept_nr);
        break;
    case 'assist':
        $element = 'assistant';
        //$maxelement=10;
        $quickid = 'doctor';
        $quicklist = $pers_obj->getDoctorsOfDept($dept_nr);
        break;
    case 'scrub':
        $element = 'scrub_nurse';
        //$maxelement=10;
        $quickid = 'nurse';
        $quicklist = $pers_obj->getNursesOfDept($dept_nr);
        break;
 $edit = true;
 # Create the waiting outpatients� list
 $dnr = isset($w_waitlist) && $w_waitlist ? 0 : $dept_nr;
 //echo '<p>'.$enc_obj->getLastQuery();
 $waitlist =& $enc_obj->createWaitingOutpatientList($dnr);
 $waitlist_count = $enc_obj->LastRecordCount();
 //echo $waitlist_count.'<p>'.$enc_obj->getLastQuery();
 # Get the doctor�s on duty information
 #### Start of routine to fetch doctors on duty
 $elem = 'duty_1_pnr';
 if (SHOW_DOC_2) {
     $elem .= ',duty_2_pnr';
 }
 # Create personnel object
 include_once $root_path . 'include/care_api_classes/class_personell.php';
 $pers_obj = new Personell();
 if ($result = $pers_obj->getDOCDutyplan($dept_nr, $pyear, $pmonth, $elem)) {
     $duty1 =& unserialize($result['duty_1_pnr']);
     if (SHOW_DOC_2) {
         $duty2 =& unserialize($result['duty_2_pnr']);
     }
     //echo $sql."<br>";
 }
 //echo $pers_obj->getLastQuery();
 # Adjust the day index. This is necessary since change of duty usually happens early morning  not midnight
 $offset_day = $pday - 1;
 # Consider the early morning hours to belong to the past day
 if (date('H.i') < DOC_CHANGE_TIME) {
     $offset_day--;
 }
 if ($pnr1 = $duty1['ha' . $offset_day]) {
}
$dbtable = 'care_dutyplan_oncall';
// test dept nr
//$dept_nr=4;
$sql = "SELECT duty_1_pnr,duty_2_pnr FROM {$dbtable} \n\t\t\tWHERE dept_nr='{$dept_nr}'\n\t\t\t\t\t\t\tAND year='{$pyear}'\n\t\t\t\t\t\t\tAND month='" . (int) $pmonth . "'";
if ($ergebnis = $db->Execute($sql)) {
    if ($rows = $ergebnis->RecordCount()) {
        $result = $ergebnis->FetchRow();
        $duty1 = unserialize($result['duty_1_pnr']);
        $duty2 = unserialize($result['duty_2_pnr']);
        //echo $sql."<br>";
    }
}
//echo $sql;
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
if ($pnr = $duty1['ha' . $offset_day]) {
    $person1 =& $pers_obj->getPersonellInfo($pnr);
}
if ($pnr = $duty2['hr' . $offset_day]) {
    $person2 =& $pers_obj->getPersonellInfo($pnr);
}
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept =& $dept_obj->getPhoneInfo($dept_nr);
/* Resolve the departments name "language dependent" */
$dept_ldvar = $dept_obj->LDvar($dept_nr);
if (isset(${$dept_ldvar}) && !empty(${$dept_ldvar})) {
    $dept_name = ${$dept_ldvar};
} else {
    $dept_name = $dept_obj->FormalName($dept_nr);
Ejemplo n.º 9
0
} else {
    if ($year == "") {
        $year = date(Y);
    }
    if (!$month) {
        $month = date(m);
    }
    //if(!$day) $day=date(d);
}
/* Establish db connection */
if (!isset($db) || !$db) {
    include $root_path . 'include/inc_db_makelink.php';
}
if ($dblink_ok) {
    include_once $root_path . 'include/care_api_classes/class_personell.php';
    $pers_obj = new Personell();
    if ($pers_row = $pers_obj->getNursesOfDept($dept_nr)) {
        $datafound = 1;
        //echo $sql."<br>";
        //echo $rows;
    }
} else {
    echo "{$LDDbNoLink}<br>{$sql}";
}
?>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
<?php 
html_rtl($lang);
?>
<HEAD>
<?php 
require './roots.php';
require $root_path . 'include/inc_environment_global.php';
/**
* CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
* GNU General Public License
* Copyright 2002,2003,2004,2005 Elpidio Latorilla
* elpidio@care2x.org, 
*
* See the file "copy_notice.txt" for the licence notice
*/
define('LANG_FILE', 'doctors.php');
define('NO_2LEVEL_CHK', 1);
require_once $root_path . 'include/inc_front_chain_lang.php';
require_once $root_path . 'include/inc_date_format_functions.php';
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$doctors =& $pers_obj->getDoctorsOfDept($dept_nr);
$wkday = date("w", mktime(0, 0, 0, $month, $elemid + 1, $year));
?>

<?php 
html_rtl($lang);
?>
<HEAD>
<?php 
echo setCharSet();
?>
<TITLE><?php 
echo $LDInfo4Duty;
?>
</TITLE>
require './roots.php';
require $root_path . 'include/inc_environment_global.php';
/**
* CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
* GNU General Public License
* Copyright 2002,2003,2004,2005 Elpidio Latorilla
* elpidio@care2x.org, 
*
* See the file "copy_notice.txt" for the licence notice
*/
define('LANG_FILE', 'doctors.php');
define('NO_2LEVEL_CHK', 1);
require_once $root_path . 'include/inc_front_chain_lang.php';
require_once $root_path . 'include/inc_date_format_functions.php';
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$nurses =& $pers_obj->getNursesOfDept($dept_nr);
$wkday = date("w", mktime(0, 0, 0, $month, $elemid + 1, $year));
?>

<?php 
html_rtl($lang);
?>
<HEAD>
<?php 
echo setCharSet();
?>
<TITLE><?php 
echo $LDInfo4Duty;
?>
</TITLE>
Ejemplo n.º 12
0
if (!isset($username)) {
    $username = '';
}
if (!isset($userid)) {
    $userid = '';
}
if (!isset($errorpass)) {
    $errorpass = '';
}
if (!isset($pass)) {
    $pass = '';
}
if (!isset($errorbereich)) {
    $errorbereich = '';
}
$pers_obj = new Personell();
if ($pass != '' && $mode == 'edit') {
    $pass = $_REQUEST['pass1'];
    $userid = $_REQUEST['userid'];
    $pers_obj->ResetPassword($userid, $pass);
}
if ($mode != '') {
    if ($mode != 'edit' && $mode != 'update' && $mode != 'data_saved') {
        /* Trim white spaces off */
        $username = trim($username);
        $userid = trim($userid);
        $pass = trim($pass);
        if ($username == '') {
            $errorname = 1;
            $error = 1;
        }
<?php

error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR);
require './roots.php';
require $root_path . 'include/inc_environment_global.php';
define('LANG_FILE', 'or.php');
$local_user = '******';
require_once $root_path . 'include/inc_front_chain_lang.php';
# Create the personell object
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$title = $LDOpPersonElements[$winid];
switch ($winid) {
    case 'operator':
        $stitle = 'O';
        break;
    case 'assist':
        $stitle = 'A';
        break;
    case 'scrub':
        $stitle = 'I';
        break;
    case 'rotating':
        $stitle = 'O';
        break;
    case 'ana':
        $element = 'an_doctor';
        //$maxelement=10;
        break;
    default:
        header('Location:' . $root_path . '/language/' . $lang . '/lang_' . $lang . '_invalid-access-warning.php');
    if ($cfg['thispc_dept_nr']) {
        $dept_nr = $cfg['thispc_dept_nr'];
    } else {
        header('Location:nursing-or-select-dept.php' . URL_REDIRECT_APPEND . '&target=plist&retpath=' . $retpath);
        exit;
    }
}
$thisfile = basename($_SERVER['PHP_SELF']);
# Load the department list with oncall doctors
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept_obj->preloadDept($dept_nr);
$dept_list =& $dept_obj->getAllMedical();
# Load the dept nurses
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$nurses =& $pers_obj->getNursesOfDept($dept_nr);
# Load global values
$GLOBAL_CONFIG = array();
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$glob_obj = new GlobalConfig($GLOBAL_CONFIG);
$glob_obj->getConfig('personell_%');
# Set color values for the search mask
$searchmask_bgcolor = '#f3f3f3';
$searchprompt = $LDEntryPrompt;
$entry_block_bgcolor = '#fff3f3';
$entry_border_bgcolor = '#6666ee';
$entry_body_bgcolor = '#ffffff';
if (!isset($searchkey)) {
    $searchkey = '';
}
}
# Get the cached plan
$cached_plan = '';
$is_cached = $core->getDBCache('NOCS_' . $plan_date, $cached_plan);
if (!$is_cached || $is_cached && $force_no_cache) {
    if (!$hilitedept) {
        if ($dept_nr) {
            $hilitedept = $dept_nr;
        }
    }
    # Load the department list with oncall doctors
    include_once $root_path . 'include/care_api_classes/class_department.php';
    $dept_obj = new Department();
    $dept_OC = $dept_obj->getAllActiveWithNOC();
    include_once $root_path . 'include/care_api_classes/class_personell.php';
    $pers_obj = new Personell();
    $quicklist =& $pers_obj->getNOCQuicklist($dept_OC, $pyear, $pmonth);
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('common');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDORNOC} :: {$LDQuickView}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('op_duty.php','quick')");
# href for close button
Ejemplo n.º 16
0
$lang_tables[] = 'departments.php';
define('LANG_FILE', 'doctors.php');
$local_user = '******';
require_once $root_path . 'include/inc_front_chain_lang.php';
if (!isset($dept_nr) || !$dept_nr) {
    header('Location:doctors-select-dept.php' . URL_REDIRECT_APPEND . '&retpath=' . $retpath);
    exit;
}
//$db->debug=1;
$thisfile = basename($_SERVER['PHP_SELF']);
$breakfile = "doctors-dienstplan.php" . URL_APPEND . "&dept_nr={$dept_nr}&pmonth={$pmonth}&pyear={$pyear}&retpath={$retpath}";
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept_obj->preloadDept($dept_nr);
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$pers_obj->useDutyplanTable();
if ($pmonth == '') {
    $pmonth = date('n');
}
if ($pyear == '') {
    $pyear = date('Y');
}
/* Establish db connection */
if (!isset($db) || !$db) {
    include $root_path . 'include/inc_db_makelink.php';
}
if ($dblink_ok) {
    if ($mode == 'save') {
        $arr_1_txt = array();
        $arr_2_txt = array();
error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR);
require './roots.php';
require $root_path . 'include/inc_environment_global.php';
/**
* CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
* GNU General Public License
* Copyright 2002,2003,2004,2005 Elpidio Latorilla
* elpidio@care2x.org, 
*
* See the file "copy_notice.txt" for the licence notice
*/
define('LANG_FILE', 'doctors.php');
define('NO_2LEVEL_CHK', 1);
require_once $root_path . 'include/inc_front_chain_lang.php';
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$person =& $pers_obj->getPersonellInfo($nr);
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept =& $dept_obj->getPhoneInfo($dept_nr);
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$glob_obj = new GlobalConfig($GLOBAL_CONFIG);
$glob_obj->getConfig('person_%');
/* Check whether config foto path exists, else use default path */
$default_photo_path = 'fotos/registration';
$photo_filename = $person['photo_filename'];
$photo_path = is_dir($root_path . $GLOBAL_CONFIG['person_foto_path']) ? $GLOBAL_CONFIG['person_foto_path'] : $default_photo_path;
require_once $root_path . 'include/inc_photo_filename_resolve.php';
html_rtl($lang);
?>
<HEAD>
Ejemplo n.º 18
0
define('LANG_FILE', 'aufnahme.php');
$local_user = '******';
require_once $root_path . 'include/inc_front_chain_lang.php';
require_once $root_path . 'include/care_api_classes/class_personell.php';
//require_once($root_path.'include/care_api_classes/class_person.php');
//require_once($root_path.'include/care_api_classes/class_insurance.php');
//require_once($root_path.'include/care_api_classes/class_ward.php');
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$GLOBAL_CONFIG = array();
$thisfile = basename($_SERVER['PHP_SELF']);
if ($_COOKIE['ck_login_logged' . $sid]) {
    $breakfile = $root_path . 'main/spediens.php' . URL_APPEND;
} else {
    $breakfile = 'personell_admin_pass.php' . URL_APPEND . '&target=' . $target;
}
$personell_obj = new Personell();
//$person_obj=new Person();
//$insurance_obj=new Insurance;
//$ward_obj=new Ward;
/* Get the personell  global configs */
$glob_obj = new GlobalConfig($GLOBAL_CONFIG);
$glob_obj->getConfig('personell_%');
$glob_obj->getConfig('person_foto_path');
$updatefile = 'personell_register.php';
/* Default path for fotos. Make sure that this directory exists! */
$default_photo_path = $root_path . 'fotos/registration';
$photo_filename = 'nopic';
#Check whether the origin is phone directory and if session personnel nr. is ok
if ($_SESSION['sess_user_origin'] == 'phonedir' && $_SESSION['sess_personell_nr']) {
    $personell_nr = $_SESSION['sess_personell_nr'];
} else {