コード例 #1
0
 if ($patient['insurance_ID']) {
     if ($ins_obj->CheckCurrentContractValidity($patient['insurance_ID'])) {
         $insurance_name = $ins_obj->GetName_insurance_from_id($patient['insurance_ID']);
     }
     $smarty->assign('sInsuranceType', substr($insurance_name, 0, 15));
 } else {
     $smarty->assign('sInsuranceType', substr($insurance_name, 0, 15));
 }
 if ($edit) {
     /* MEROTECH:
     			Commented out for selian town clinic by Alexander Irro
     			$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).' alt="'.$LDAdmissionData.' : '.$LDClk2Show.'"></a>');
     			*/
     if ($dept_nr == 55) {
         $o_arv_patient = new ART_patient($patient['pid']);
         if ($o_arv_patient->is_arv_admitted($patient['pid'])) {
             $temp_image = "<a href=\"javascript:getARV('" . $patient['pid'] . "','" . $patient['encounter_nr'] . "')\"><img " . createComIcon($root_path, 'ball_gray.png', '0', '', TRUE) . " alt=\"inARV\"></a>";
         } else {
             $temp_image = "<a href=\"javascript:getARV('" . $patient['pid'] . "','" . $patient['encounter_nr'] . "')\"><img " . createComIcon($root_path, 'ball_red.png', '0', '', TRUE) . " alt=\"not_inARV\"></a>";
         }
     }
     if ($dept_nr == 7) {
         //$o_arv_patient=&new ART_patient($patient['pid']);
         //if($o_arv_patient->is_arv_admitted($patient['pid'])) {
         //$temp_image="<a href=\"javascript:getEyeclinic('".$patient['pid']."','".$patient['encounter_nr']."')\"><img ".createComIcon($root_path,'ball_gray.png','0','',TRUE)." alt=\"inARV\"></a>";
         //}
         //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']);