$sBuffer = '';
 $kct = $multi_obj->CheckDiagnosis($bed['encounter_nr']);
 if ($vct[9] == 1 && $bed['encounter_nr'] != '') {
     if ($kct < 1) {
         $smarty->assign('sFlagDiag', ' style="background-color:yellow !important; color:#000000;" ');
         $smarty->assign('sFlagDiag2', ' style="background-color:gold !important; color:#000000;" ');
         $smarty->assign('sNoDiag', ' [ No Dx ] ');
         $nodischarge = 1;
     }
 }
 #if($bed['insurance_class_nr']!=2) $sBuffer = $sBuffer.'<font color="#ff0000">';
 if ($edit) {
     if ($is_patient && !empty($bed['encounter_nr'])) {
         $smarty->assign('sAdmitDataIcon', '<a href="' . $root_path . 'modules/registration_admission/aufnahme_pass.php' . URL_APPEND . '&target=search&fwd_nr=' . $bed['encounter_nr'] . '" title="' . $LDAdmissionData . ' : ' . $LDClk2Show . '"><img ' . createComIcon($root_path, 'pdata.gif', '0', '', TRUE) . ' alt="' . $LDAdmissionData . ' : ' . $LDClk2Show . '"></a>');
         $smarty->assign('sChartFolderIcon', '<a href="javascript:getinfo(\'' . $bed['encounter_nr'] . '\')"><img ' . createComIcon($root_path, 'open.gif', '0', '', TRUE) . ' align="absmiddle" alt="' . $LDShowPatData . '"></a>');
         $display = $multi_obj->has_notes($bed['encounter_nr']);
         $sBuffer = '<a href="javascript:getrem(\'' . $bed['encounter_nr'] . '\')"><img ';
         if ($display > 0) {
             $sBuffer = $sBuffer . createComIcon($root_path, 'bubble3.gif', '0', '', TRUE);
         } else {
             $sBuffer = $sBuffer . createComIcon($root_path, 'bubble2.gif', '0', '', TRUE);
         }
         $sBuffer = $sBuffer . ' align="absmiddle" alt="' . $LDNoticeRW . '"></a>';
         $smarty->assign('sNotesIcon', $sBuffer);
         $smarty->assign('sTransferIcon', '<a style="display:none;" href="javascript:Transfer(\'' . $bed['encounter_nr'] . '\')"><img ' . createComIcon($root_path, 'xchange.gif', '0', '', TRUE) . ' align="absmiddle" alt="' . $LDTransferPatient . '"></a>');
         $smarty->assign('sDischargeInfoIcon', '<a href="javascript:release_info(\'' . $bed['encounter_nr'] . '\')" title="show info"><img ' . createComIcon($root_path, 'button_info.gif', '0', '', TRUE) . ' align="absmiddle" alt="show info"></a>');
         $smarty->assign('sDischargeIcon', '<a href="javascript:void(0);" onclick="' . ($vct[11] == 1 && $kct == 0 ? 'alert(\'This Patient has no Diagnosis \\n You can not Discharge.\')' : 'release(\'' . $bed['room_nr'] . '\',\'' . $bed['bed_nr'] . '\',\'' . $bed['encounter_nr'] . '\')') . '"><img ' . createComIcon($root_path, 'bestell.gif', '0', '', TRUE) . ' align="absmiddle" alt="' . $LDReleasePatient . '"></a>');
     }
 }
 # Create the rows using ward_occupancy_list_row.tpl template^
 ob_start();
Esempio n. 2
0
         //else {
         $temp_image = "<a href=\"javascript:getEyeclinic('" . $patient['pid'] . "','" . $patient['encounter_nr'] . "')\"><img width=17 height=17 " . createComIcon($root_path, 'eye.gif', '0', '', TRUE) . " alt=\"Eye Examination\"></a>";
         //}
     }
     $kct = $cd_obj->CheckDiagnosis($patient['encounter_nr']);
     if ($vct[9] == 1) {
         if ($kct < 1 && $patient['encounter_nr'] != '') {
             $smarty->assign('sFlagDiag', ' style="background-color:yellow !important; color:#000000;" ');
             $smarty->assign('sFlagDiag2', ' style="background-color:yellow !important; color:#000000;" ');
             $smarty->assign('sNoDiag', ' [ No Dx ] ');
         }
     }
     $smarty->assign('sARVIcon', $temp_image);
     $smarty->assign('sAdmitDataIcon', '<a href="' . $root_path . 'modules/registration_admission/aufnahme_pass.php' . URL_APPEND . '&target=search&fwd_nr=' . $patient['encounter_nr'] . '" title="' . $LDAdmissionData . ' : ' . $LDClk2Show . '"><img ' . createComIcon($root_path, 'pdata.gif', '0', '', TRUE) . ' align="absmiddle" alt="' . $LDAdmissionData . ' : ' . $LDClk2Show . '"></a>');
     $smarty->assign('sChartFolderIcon', '<a href="javascript:getinfo(\'' . $patient['encounter_nr'] . '\')"><img ' . createComIcon($root_path, 'open.gif', '0', '', TRUE) . ' align="absmiddle" alt="' . $LDShowPatData . '"></a>');
     $display = $multi_obj->has_notes($patient['encounter_nr']);
     $sBuffer = '<a href="javascript:getrem(\'' . $patient['encounter_nr'] . '\')"><img ';
     if ($display > 0) {
         $sBuffer = $sBuffer . createComIcon($root_path, 'bubble3.gif', '0', '', TRUE);
     } else {
         $sBuffer = $sBuffer . createComIcon($root_path, 'bubble2.gif', '0', '', TRUE);
     }
     $sBuffer = $sBuffer . ' align="absmiddle" alt="' . $LDNoticeRW . '"></a>';
     $smarty->assign('sNotesIcon', $sBuffer);
     $smarty->assign('sTransferIcon', '<a href="javascript:Transfer(\'' . $patient['encounter_nr'] . '\',\'\', \'' . $pid . '\')"><img ' . createComIcon($root_path, 'xchange.gif', '0', '', TRUE) . ' align="absmiddle" alt="' . $LDTransferPatient . '"></a>');
     /* MEROTECH:
     			Commented out for selian town clinic by Alexander Irro
     			$smarty->assign('sDischargeIcon','<a href="javascript:release(\''.$patient['encounter_nr'].'\')" title="'.$LDReleasePatient.'"><img '.createComIcon($root_path,'bestell.gif','0','',TRUE).' alt="'.$LDReleasePatient.'"></a>');
     			*/
 }
 # Create the rows using ward_occupancy_list_row.tpl template