0) { $row = @mysqli_fetch_array($result); $saved_ohc_id = $row['ohc_type_id']; } if ($_REQUEST['followup_to_opd'] == '' || $_REQUEST['followup_to_opd'] == null || $_REQUEST['followup_to_opd'] == 0) { $sql_for_treatment = "select * from treatment where appointment_id='" . $app_id . "' and is_display!='N' and followup_id='0' "; } else { if ($followup_id == '' || $followup_id == null) { $sql_for_treatment = "select * from treatment where appointment_id='" . $app_id . "' and is_display!='N' and followup_id!='0' "; } else { $sql_for_treatment = "select * from treatment where appointment_id='" . $app_id . "' and is_display!='N' and followup_id='" . $followup_id . "' "; } } error_log('tq' . $sql_for_treatment); $result_for_treatment = @mysqli_query($conn, $sql_for_treatment); $num_rows_treatment = @mysqli_num_rows($result_for_treatment); $sql_for_treatment_external = "select * from treatment_external where appointment_id='" . $app_id . "'"; $result_for_treatment_external = @mysqli_query($conn, $sql_for_treatment_external); $num_rows_treatment_external = @mysqli_num_rows($result_for_treatment_external); // If Its a follow up OPD/INJURY case - then add treatment details from the existing $treatment_followup_picked = false; if (($num_rows_treatment == 0 && $num_rows_treatment_external == 0) && ($row['followup_to_opd'] != null && $row['followup_to_opd'] != "0")) { $follow_up_ohc = getFieldFromTable('ohc_type_id', 'employee_appointment', 'appointment_id', $row['followup_to_opd']); if ($follow_up_ohc == $_SESSION['current_ohcttype']) { $sql_for_treatment = "select * from treatment where appointment_id='" . $row['followup_to_opd'] . "' and is_display!='N'"; $result_for_treatment = @mysqli_query($conn, $sql_for_treatment); $num_rows_treatment = @mysqli_num_rows($result_for_treatment); $sql_for_treatment_external = "select * from treatment_external where appointment_id='" . $row['followup_to_opd'] . "'"; $result_for_treatment_external = @mysqli_query($conn, $sql_for_treatment_external); $num_rows_treatment_external = @mysqli_num_rows($result_for_treatment_external); $treatment_followup_picked = true; } } error_log('appp' . $row['appointment_date']); } ?>
Patient OPD >        
    
    
    
    
Medicine Frequency Timing Admin. Route Duration Daily Dose Qty Total Qty Available Qty Qty Issued
0) { $row_sick = @mysqli_fetch_array($result_sick); @extract($row_sick); } $sickness_id = $row_sick['sickness_id']; $past_ticket_no = $row_sick['ticket_no']; $past_agency = $row_sick['agency']; $past_des = $row_sick['des_future']; $past_from_date = $row_sick['from_date']; $past_to_date = $row_sick['to_date']; $past_date_absent = $row_sick['date_absent']; $certificate_type = $row_sick['certificate_type']; // echo "ddd".$row_sick['date_absent_to']; $past_date_absent_to = $row_sick['date_absent_to']; $past_date_return = $row_sick['date_return']; $existingAilmentList = $row_sick['ailment_name']; $ailment_id = $row_sick['ailment_system']; $height = $row_sick['height']; $weight = $row_sick['weight']; $bp = $row_sick['bp']; $pulse = $row_sick['pulse']; $chest_ex = $row_sick['chest_ex']; $chest_uex = $row_sick['chest_uex']; $nose = $row_sick['nose']; $throat = $row_sick['throat']; $rs = $row_sick['rs']; $cvs = $row_sick['cvs']; $cns = $row_sick['cns']; $sickness_status = $row_sick['attended_status']; $blood = $row_sick['blood']; $half_day = $row_sick['half_day']; $date_difference = $row_sick['date_difference']; } } if (empty($sickness_status)) { if ($_SESSION['RoleCode'] == 'DOC') { $sickness_status = 'DRA'; } else { $sickness_status = 'DRP'; } } if ($sickness_id != '' && $sickness_id != null && $sickness_id != 0) { ?>
Days
"; } ?>
WEIGHT:
HEIGHT:
BMI:
SBP:
DBP:
Temp:
SPOC2%:
R RATE:
Heart Rate:
Pulse:
GLASGOW COMA SCALE: