}
} else {
    //echo $_SESSION['sess_pid'];
    if ($d_notes =& $report_obj->getDailyNotesTypes($pn)) {
        include_once $root_path . 'include/inc_editor_fx.php';
        $occup = true;
    }
    # If location name is empty, fetch by location nr
    if (!isset($station) || empty($station)) {
        # Know where we are
        switch ($_SESSION['sess_user_origin']) {
            case 'amb':
                # Create nursing notes object
                include_once $root_path . 'include/care_api_classes/class_department.php';
                $obj = new Department();
                $station = $obj->FormalName($dept_nr);
                break;
            default:
                # Create nursing notes object
                include_once $root_path . 'include/care_api_classes/class_ward.php';
                $obj = new Ward();
                $station = $obj->WardName($location_nr);
        }
        echo $obj->getLastQuery();
    }
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so
    include $root_path . 'include/inc_products_search_mod.php';
} elseif ($mode == 'save' && $bestellnum != '' && $artikelname != '') {
    //include($root_path.'include/inc_products_ordercatalog_save.php');
    $saveok = $product_obj->SaveCatalogItem($_GET, $cat);
}
if ($mode == 'delete' && $keyword != '') {
    //include($root_path.'include/inc_products_ordercatalog_delete.php');
    $delete_ok = $product_obj->DeleteCatalogItem($keyword, $cat);
}
# Prepare title
$sTitle = "{$title}::{$LDCatalog}::";
$buff = $dept_obj->LDvar($dept_nr);
if (isset(${$buff}) && !empty(${$buff})) {
    $sTitle = $sTitle . ${$buff};
} else {
    $sTitle = $sTitle . $dept_obj->FormalName($dept_nr);
}
# 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', $sTitle);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('products.php','maincat','','{$cat}')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Detect the type of form
# $bgc1 = The main background color of the form
switch ($target) {
    case 'radio':
        $formtitle = $LDRadiology;
        $bgc1 = '#ffffff';
        break;
    case 'generic':
        include_once $root_path . 'include/care_api_classes/class_department.php';
        $dept_obj = new Department();
        if ($dept_obj->preloadDept($stored_request['testing_dept'])) {
            $buffer = $dept_obj->LDvar();
            if (isset(${$buffer}) && !empty(${$buffer})) {
                $formtitle = ${$buffer};
            } else {
                $formtitle = $dept_obj->FormalName();
            }
        }
        $bgc1 = '#bbdbc4';
        break;
    case 'chemlabor':
        $formtitle = $LDChemicallaboratory;
        $bgc1 = '#fff3f3';
        if (file_exists($root_path . 'language/' . $lang . '/lang_' . $lang . '_konsil_chemlabor.php')) {
            include_once $root_path . 'language/' . $lang . '/lang_' . $lang . '_konsil_chemlabor.php';
        } else {
            include_once $root_path . 'language/en/lang_en_konsil_chemlabor.php';
        }
        break;
    case 'baclabor':
        $formtitle = $LDBacteriologicalLaboratory;
示例#4
0
# Get ward or department infos
if ($encounter['encounter_class_nr'] == 1) {
    # Get ward name
    include_once $root_path . 'include/care_api_classes/class_ward.php';
    $ward_obj = new Ward();
    $current_ward_name = $ward_obj->WardName($encounter['current_ward_nr']);
} elseif ($encounter['encounter_class_nr'] == 2) {
    # Get ward name
    include_once $root_path . 'include/care_api_classes/class_department.php';
    $dept_obj = new Department();
    //$current_dept_name=$dept_obj->FormalName($current_dept_nr);
    $current_dept_LDvar = $dept_obj->LDvar($encounter['current_dept_nr']);
    if (isset(${$current_dept_LDvar}) && !empty(${$current_dept_LDvar})) {
        $current_dept_name = ${$current_dept_LDvar};
    } else {
        $current_dept_name = $dept_obj->FormalName($encounter['current_dept_nr']);
    }
}
require_once $root_path . 'include/care_api_classes/class_insurance.php';
$insurance_obj = new Insurance();
$classpath = $root_path . 'classes/phppdf/';
$fontpath = $classpath . 'fonts/';
# Load and create pdf object
include $classpath . 'class.ezpdf.php';
$pdf = new Cezpdf();
$logo = $root_path . 'gui/img/logos/lopo/care_logo.png';
$arlogo = $root_path . 'gui/img/logos/lopo/ar/care_logo.png';
//added  by Waleed Fathalla at 06/03/2004
$pidbarcode = $root_path . 'cache/barcodes/pn_' . $encounter['pid'] . '.png';
$encbarcode = $root_path . 'cache/barcodes/en_' . $enc . '.png';
# Patch for empty file names 2004-05-2 EL
示例#5
0
    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}::";
$LDvar = $dept_obj->LDvar();
if (isset(${$LDvar}) && ${$LDvar}) {
    $sTitle = $sTitle . ${$LDvar};
} else {
    $sTitle = $sTitle . $dept_obj->FormalName();
}
# 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', $sTitle);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('docs_dutyplan.php','show','{$rows}')");
# href for close button
$smarty->assign('breakfile', $rettarget);
示例#6
0
# Create encounter object
require_once $root_path . 'include/care_api_classes/class_encounter.php';
$enc_obj = new Encounter();
/* Save dept name to session */
if (!$_SESSION['sess_dept_name']) {
    $_SESSION['sess_dept_name'];
}
/* Create dept object and preload dept info */
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept_obj->preloadDept($dept_nr);
$buffer = $dept_obj->LDvar();
if (isset(${$buffer}) && !empty(${$buffer})) {
    $_SESSION['sess_dept_name'] = ${$buffer};
} else {
    $_SESSION['sess_dept_name'] = $dept_obj->FormalName();
}
/* Load global configs */
include_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$GLOBAL_CONFIG = array();
$glob_obj = new GlobalConfig($GLOBAL_CONFIG);
$glob_obj->getConfig('patient_%');
if (substr($matchcode, 0, 1) == '%' || substr($matchcode, 0, 1) == '&') {
    header("location:'.{$root_path}.'language/" . $lang . "/lang_" . $lang . "_invalid-access-warning.php");
    exit;
}
$breakfile = $root_path . 'main/op-doku.php' . URL_APPEND;
$thisfile = basename($_SERVER['PHP_SELF']);
/* Set color values for the search mask */
$searchmask_bgcolor = '#f3f3f3';
$searchprompt = $LDEntryPrompt;
    $glob_obj = new GlobalConfig($GLOBAL_CONFIG);
    $glob_obj->getConfig('patient_%');
    $glob_obj->getConfig('person_%');
    $result =& $enc_obj->encounter;
    /* Check whether config foto path exists, else use default path */
    $default_photo_path = 'fotos/registration';
    $photo_filename = $result['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';
    /* Load the discharge types */
    $discharge_types =& $enc_obj->getDischargeTypesData();
    if (!isset($dept) || empty($dept)) {
        # Create nursing notes object
        include_once $root_path . 'include/care_api_classes/class_department.php';
        $dept_obj = new Department();
        $dept = $dept_obj->FormalName($dept_nr);
    }
}
# 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');
# Toolbar title
$smarty->assign('sToolbarTitle', $LDReleasePatient);
# href for the return button
$smarty->assign('pbBack', FALSE);
# href for the  button
 # Get ward or department infos
 if ($encounter_class_nr == 1) {
     # Get ward name
     include_once $root_path . 'include/care_api_classes/class_ward.php';
     $ward_obj = new Ward();
     $current_ward_name = $ward_obj->WardName($current_ward_nr);
 } elseif ($encounter_class_nr == 2) {
     # Get ward name
     include_once $root_path . 'include/care_api_classes/class_department.php';
     $dept_obj = new Department();
     //$current_dept_name=$dept_obj->FormalName($current_dept_nr);
     $current_dept_LDvar = $dept_obj->LDvar($current_dept_nr);
     if (isset(${$current_dept_LDvar}) && !empty(${$current_dept_LDvar})) {
         $current_dept_name = ${$current_dept_LDvar};
     } else {
         $current_dept_name = $dept_obj->FormalName($current_dept_nr);
     }
 }
 $count = 2;
 $type = "R";
 for ($i = 0; $i < $count; $i++) {
     $sql = "select * from care_encounter_prescription as a\n\t\t\t\t\tinner join care_tz_drugsandservices as b on a.article_item_number = b.item_id\n\t\t\t\t\twhere a.encounter_nr={$encounter_nr} AND (isnull(a.is_disabled) OR a.is_disabled='')  AND b.item_number like '{$type}%'\n\t\t\t\t ";
     $result = $db->Execute($sql);
     while ($encounter = $result->FetchRow()) {
         if ($type == "R") {
             $registration_fee = $encounter['article'];
         } else {
             if ($type == "C") {
                 $consultation_fee = $encounter['article'];
             }
         }
</head>
<body  topmargin=20 leftmargin=30  marginwidth=30 marginheight=20  bgcolor=#fefefe onLoad="if (window.focus) window.focus();  if(parentref('1')) 1;" 
>
<p>

<?php 
//foreach($argv as $v) echo "$v ";
if ($rows) {
    # Create department object
    include_once $root_path . 'include/care_api_classes/class_department.php';
    $dept = new Department();
    //++++++++++++++++++++++++ show the actual list +++++++++++++++++++++++++++
    $tog = 1;
    echo '<p>
		<font face="Verdana, Arial" size=2 >
		' . $LDOrderNr . ' ' . $order_nr . '<p>' . $dept->FormalName($dept_nr) . '</font><br>
		<font face="Arial" size=2> ' . $LDListindex[2] . ': ';
    echo formatDate2Local($content['order_date'], $date_format);
    echo ' ' . $LDAt . ': ' . convertTimeToLocal(str_replace('24', '00', $content['order_time'])) . '<p>';
    if ($content['priority'] == 'urgent') {
        echo "::::::::::::::::::::  {$LDUrgent} {$LDUrgent} {$LDUrgent} ::::::::::::::::::::::::";
    }
    echo '
		<table border=0 cellspacing=0 cellpadding=0 bgcolor="#666666" width="100%">
		<tr><td>
		<table border=0 cellspacing=1 cellpadding=3 width="100%">
  		<tr bgcolor="#ffffff">';
    for ($i = 0; $i < sizeof($LDFinindex); $i++) {
        echo '
		<td><font face=Verdana,Arial size=2 >' . $LDFinindex[$i] . '</td>';
    }
# get the actual order catalog
//require($root_path.'include/inc_products_ordercatalog_getactual.php');
$ergebnis =& $product_obj->ActualOrderCatalog($dept_nr, $cat);
$rows = $product_obj->LastRecordCount();
# show catalog
if ($rows) {
    echo '
			<form name="curcatform" onSubmit="return checkform(this)">';
    $tog = 1;
    echo '
		<font color="#800000">' . $LDCatalog . ' :: ';
    $buff = $dept_obj->LDvar($dept_nr);
    if (isset(${$buff}) && !empty(${$buff})) {
        echo ${$buff};
    } else {
        echo $dept_obj->FormalName($dept_nr);
    }
    echo '</font>
		<table border=0 cellspacing=1 cellpadding=3 width="100%">
  		<tr class="wardlisttitlerow">';
    for ($i = 0; $i < sizeof($LDCindex); $i++) {
        echo '
		<td><font color="#000080">' . $LDCindex[$i] . '</td>';
    }
    /*	echo '<td>
    		</td>
    		<td>
    		</td>
    		</tr>';
    */
    $i = 1;
示例#11
0
echo $cat;
?>
')"><img <?php 
echo createComIcon($root_path, 'frage.gif', '0', 'right');
?>
 alt="<?php 
echo $LDOpenHelp;
?>
"></a>
<font size=2 face="verdana,arial">
<?php 
$buff = $dept_obj->LDvar($dept_nr);
if (isset(${$buff}) && !empty(${$buff})) {
    echo ${$buff};
} else {
    echo $dept_obj->FormalName($dept_nr);
}
?>
</font><br>
<?php 
if ($rows > 0) {
    #++++++++++++++++++++++++ show the actual list +++++++++++++++++++++++++++
    $tog = 1;
    //$content=$ergebnis->FetchRow();
    echo '<form name=actlist>
		<font size=2 color="#800000">' . $LDActualOrder . ':</font>
		<font size=1> (' . $LDOn . ': ';
    echo formatDate2Local($content['order_date'], $date_format);
    echo ' ' . $LDTime . ': ' . str_replace('24', '00', convertTimeToLocal($content['order_time'])) . ')</font>
		<table border=0 cellspacing=1 cellpadding=3 width="100%">
  		<tr class="wardlisttitlerow">';
        $title = $LDPendingRequest . " - " . $LDTestType[$subtarget];
        if ($subtarget == 'radio') {
            $breakfile = $root_path . "modules/radiology/radiolog.php" . URL_APPEND;
            $test_pass_logo = "thorax_sm.jpg";
        }
        $fileforward = "labor_test_request_admin_" . $subtarget . ".php" . URL_REDIRECT_APPEND . "&target=" . $target . "&subtarget=" . $subtarget . "&noresize=1&&user_origin=" . $user_origin;
        break;
    case 'generic':
        include_once $root_path . 'include/care_api_classes/class_department.php';
        $dept_obj = new Department();
        if ($dept_obj->preloadDept($subtarget)) {
            $buffer = $dept_obj->LDvar();
            if (isset(${$buffer}) && !empty(${$buffer})) {
                $title = $LDPendingRequest . " - " . ${$buffer};
            } else {
                $title = $LDPendingRequest . " - " . $dept_obj->FormalName();
            }
        }
        $fileforward = "labor_test_request_admin_generic.php" . URL_REDIRECT_APPEND . "&target=" . $target . "&subtarget=" . $subtarget . "&noresize=1&&user_origin=" . $user_origin;
        if ($user_origin == 'amb') {
            $userck = 'ck_amb_user';
            $breakfile = $root_path . 'modules/ambulatory/ambulatory.php' . URL_APPEND;
        } else {
            $userck = 'ck_lab_user';
            $breakfile = $root_path . "modules/doctors/doctors.php" . URL_APPEND;
        }
        break;
    default:
        $title = $LDTestRequest . " - " . $LDTestType[$target];
}
$lognote = "{$title} ok";
示例#13
0
<CENTER>
<?php 
$opabt = get_meta_tags($root_path . 'global_conf/' . $lang . '/op_tag_dept.pid');
echo '
<table  cellpadding="3" cellspacing="1" border="0" width="100%">';
echo '
		<tr class="wardlisttitlerow"><td colspan=2><nobr>
		<a href="oplogmain.php?sid=' . $sid . '&lang=' . $lang . '&internok=' . $internok . '&thisday=' . $yesday . '&dept_nr=' . $dept_nr . '&saal=' . $saal . '" title="' . formatDate2Local($yesday, $date_format) . '">
		&lt;&lt; ' . $LDPrevDay . '</a></td>
		<td colspan=3 align=center><FONT  SIZE=+1>
		<b>';
$buffer = $dept_obj->LDvar();
if (isset(${$buffer}) && !empty(${$buffer})) {
    echo ${$buffer};
} else {
    echo $dept_obj->FormalName();
}
echo ' ' . $LDRoom . '-' . strtoupper($saal) . ' (' . formatDate2Local($thisday, $date_format) . ')</b></td>';
?>
		<td colspan=2>
		<nobr>
			<table cellpadding=0 cellspacing=0 border=0>	
			<form action="oplogmain.php" method="post" name="chgdept" onSubmit="return pruf(this)">
			<tr>
			<td>
				<input type="hidden" name="thisday" value="<?php 
echo $thisday;
?>
">
    			<input type="hidden" name="sid" value="<?php 
echo $sid;