Esempio n. 1
0
                echo $txt . '<img src="' . $root_path . 'main/imgcreator/labor-datacurve.php?sid=' . $sid . '&lang=' . $lang . '&cols=' . $cols . '&lo=' . $pName->fields['lo_bound_f'] . '&hi=' . $pName->fields['hi_bound_f'] . '&d=' . $valueBuff . '" border=0>';
            }
            break;
    }
    return $txt;
}
require $root_path . 'include/inc_labor_param_group.php';
if ($nostat) {
    $ret = $root_path . "modules/laboratory/labor_data_patient_such.php?sid={$sid}&lang={$lang}&versand=1&keyword={$pn}";
} else {
    $ret = $root_path . "modules/nursing/nursing-station-patientdaten.php?sid={$sid}&lang={$lang}&station={$station}&pn={$pn}";
}
# Load the date formatter
require_once $root_path . 'include/inc_date_format_functions.php';
$enc_obj->setWhereCondition("encounter_nr='{$encounter_nr}'");
if ($encounter = $enc_obj->getBasic4Data($encounter_nr)) {
    $patient = $encounter->FetchRow();
    $recs =& $lab_obj->getAllResults($encounter_nr);
    if ($rows = $lab_obj->LastRecordCount()) {
        # Merge the records to common date key
        $records = array();
        $dt = array();
        while ($buffer = $recs->FetchRow()) {
            $tmp = array($buffer['paramater_name'] => $buffer['parameter_value']);
            $records[$buffer['job_id']][] = $tmp;
            $tdate[$buffer['job_id']] =& $buffer['test_date'];
            $ttime[$buffer['job_id']] =& $buffer['test_time'];
        }
        //gjergji :
        //reverse date from past to current
        //had to use $tdatePrint for the array_reverse() to work...
Esempio n. 2
0
* Copyright 2002,2003,2004,2005 Elpidio Latorilla
* elpidio@care2x.org, 
*
* See the file "copy_notice.txt" for the licence notice
*/
define('LANG_FILE', 'specials.php');
$local_user = '******';
require_once $root_path . 'include/inc_front_chain_lang.php';
/* Load date formatter */
require_once $root_path . 'include/inc_date_format_functions.php';
if ($mode == 'search') {
    $patnum = (int) $patnum;
    include $root_path . 'include/care_api_classes/class_encounter.php';
    $enc_obj = new Encounter($patnum);
    // get orig data
    $p_obj =& $enc_obj->getBasic4Data($patnum);
    if (is_object($p_obj)) {
        $pdata = $p_obj->FetchRow();
    } else {
        $pdata = array();
    }
    /*	  		$dbtable='care_admission_patient';
    		 	$sql="SELECT encounter,name,vorname,gebdatum FROM $dbtable 
    					WHERE patnum LIKE '".addslashes($patnum)."'";
    			//echo $sql;
    			if($ergebnis=$db->Execute($sql))
           		{
    				$rows=0;
    				if( $pdata=$ergebnis->FetchRow()) $rows++;
    				if($rows==1)
    				{