0 && $followup_id==0) {
$recommended_test_param_ids = getFieldFromTable('recommended_test_param_new', 'employee_appointment', 'appointment_id', $appointment_id);
if ($recommended_test_param_ids != '' && $recommended_test_param_ids != null && $recommended_test_param_ids != ' ') {
$recommended_test_param_names = getCommaSeperatedValuesForInClause('select parameter_name from checkup_parameter', 'checkup_parameter_id', $recommended_test_param_ids);
$checkup_details = $checkup_name . "
Selected Parameters By Doc => ( " . strtolower($recommended_test_param_names) . " ) ";
}
}else if($appointment_id > 0 && $followup_id > 0){
$recommended_test_param_ids = getFieldFromTable('recommended_test_param_new', 'followup_details', 'followup_id', $followup_id);
if ($recommended_test_param_ids != '' && $recommended_test_param_ids != null && $recommended_test_param_ids != ' ') {
$recommended_test_param_names = getCommaSeperatedValuesForInClause('select parameter_name from checkup_parameter', 'checkup_parameter_id', $recommended_test_param_ids);
$checkup_details = $checkup_name . "
Selected Parameters By Doc => ( " . strtolower($recommended_test_param_names) . " ) ";
}
}
error_log('#CHECKUP id : ' . $checkup_id);
error_log('#EMP : ' . $id);
error_log('#CHECkup_type : ' . $checkup_type_id);
//echo $checkup_id;
$view_link = "";
$edit_link = "";
$delete_link = "";
$links = "";
$generate_barcode = "";
/*if($access_level=='R' ||$access_level=='W' || $access_level=='E' )
{*/
//echo "shubham";
//$roleId=$_SESSION['RoleId'];
/*if($roleId!=6){
$edit_link="";
$delete_link="";
}*/
//$view_link="";
//}
//if($access_level=='W' || $access_level=='E' )
//{
//}
// if($access_level=='E' )
// {
// }
$delete_link = "";
$edit_link = $space . "";
if($appointment_id == null || trim($appointment_id) == ''){
$appointment_id = 0;
}
$generate_barcode = "";
//
// $edit_link="";
// $edit_link="";
// $edit_link="";
// if($row_medical_examination['task']=='pme'){
// $form_name="PME Form";
// }else if($row_medical_examination['task']=='annual'){
// $form_name="Annual Medical Examination";
// }else if($row_medical_examination['task']=='pre_employment'){
// $form_name="PRE Employment Examination";
// }else if($row_medical_examination['task']=='semi_annual'){
// $form_name="Semi-Annual Examination";
// }
$medical_entry_date = date_format(date_create($row_medical_examination['checkup_date']), "d-M-Y h:i A");
$space = " ";
$checkbox = "";
error_log("checkbox " . $checkbox);
$links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link . $space . $generate_barcode;
$past_present_illnes = getCommaSeperatedValuesForInClause('select param_name from history_parameter ', 'param_id', $row_medical_examination['past_present_illness']);
$checkupSections = getCommaSeperatedValuesForInClause("select section_name from checkup_form_section", "section_id", $row_medical_examination['checkup_section_ids']);
$data['rows'][] = array(
'id' => $row_medical_examination['checkup_id'],
'cell' => array(
$checkbox,
$count++,
$links,
$medical_entry_date,
$row_medical_examination['ticket_no'],
$row_medical_examination['patient_name'],
$row_medical_examination['emp_code'],
getTableFieldValue('patient_category', 'patient_cat_name', 'patient_cat_id', $row_medical_examination['patient_cat_id']),
$checkup_details,
$row_medical_examination['remarks'],
// $checkupSections,
$row_medical_examination['current_status'] == 'LAB' ? 'Yes' : 'no'
)
);
}
$data['rows'][] = array(
'id' => $row_medical_examination['filterkey'],
'cell' => array('', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
);
error_log("data: " . print_r($data, true));
echo json_encode($data);
?>