243 lines
5.7 KiB
PHP
243 lines
5.7 KiB
PHP
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
|
<div id="opd_form_div" style="display:none">
|
|
<form id="opd_form" name="opd_form">
|
|
|
|
|
|
<?php
|
|
|
|
//include autoloader;
|
|
|
|
include('includes/config/config.php');
|
|
|
|
include_once("includes/functions.php");
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
error_log("id:" . $_REQUEST['appointment_idpdf']);
|
|
|
|
|
|
$sql_employee_appointment = "select a.*,p.patient_name, p.dept_id, p.emp_code, p.father_name, p.designation_id,employer_contractor_id, patient_cat_id, gender,blood_group,emp_cadre from employee_appointment a, patient_master p where a.emp_id=p.id and appointment_id='" . $_REQUEST['appointment_idpdf'] . "'";
|
|
|
|
error_log("sql injury pres:" . $sql_employee_appointment);
|
|
|
|
$res_emp_appoint = mysqli_query($conn, $sql_employee_appointment);
|
|
|
|
$rows_emp_appoint = mysqli_fetch_array($res_emp_appoint);
|
|
|
|
|
|
|
|
|
|
|
|
@extract($rows_emp_appoint);
|
|
|
|
$patient_name = $rows_emp_appoint['patient_name'];
|
|
|
|
|
|
//echo $query;
|
|
$doc_user_id = ($rows_emp_appoint['doctor_last_attended'] != null || 0 || "") ? $rows_emp_appoint['doctor_last_attended'] : $rows_emp_appoint['modified_by'];
|
|
|
|
$doc_emp_id = getTableFieldValue('tbl_users', 'emp_id', 'user_id', $doc_user_id, '');
|
|
|
|
$doc_name = getTableFieldValue('patient_master', 'patient_name', 'id', $doc_emp_id, '');
|
|
|
|
$result = mysqli_query($conn, $query);
|
|
|
|
$row = mysqli_fetch_array($result);
|
|
|
|
@extract($row);
|
|
|
|
$sql_doc_details = "select * from employee_signature where emp_id='$doc_emp_id'";
|
|
|
|
$result_doc_details = mysqli_query($conn, $sql_doc_details);
|
|
$row_doc_details = mysqli_fetch_array($result_doc_details);
|
|
|
|
|
|
|
|
|
|
$employee_code = $rows_emp_appoint['emp_code'];
|
|
|
|
$father_name = $rows_emp_appoint['father_name'];
|
|
|
|
if ($rows_emp_appoint['IsEmergency'] == 1) {
|
|
|
|
$ans = "Yes";
|
|
} else {
|
|
|
|
$ans = "No";
|
|
}
|
|
|
|
date_default_timezone_set('Asia/Kolkata');
|
|
|
|
$date = date('Y-m-d H:i:s');
|
|
|
|
$currentDate = date_format(date_create($date), "d-M-Y h:i:sa ");
|
|
|
|
|
|
$ailment_names = $rows_emp_appoint['ailments_new'];
|
|
|
|
$ailment_system_name = $rows_emp_appoint['ailment_systems_new'];
|
|
|
|
$injury_part_names = $rows_emp_appoint['injury_parts_new'];
|
|
|
|
|
|
$health_advices = $rows_emp_appoint['health_advices_new']; //getCommaSeperatedValuesForInClause("select health_advice_name from health_advice ","health_advice_id",$rows_emp_appoint['health_advices']);
|
|
$tests = $rows_emp_appoint['recommended_tests_new']; //getCommaSeperatedValuesForInClause("select section_name from checkup_form_section ","section_id",$rows_emp_appoint['tests']);
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<style>
|
|
.tbl1 {
|
|
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
th {
|
|
background-color: #e1e1e1;
|
|
font-size: 12px;
|
|
font-style: bold;
|
|
vertical-align: top;
|
|
}
|
|
|
|
td {
|
|
text-align: left;
|
|
font-size: 12px;
|
|
vertical-align: top;
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<table border="1" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td colspan="8"><center><strong>Medical Emergency Form</strong></center></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">Serial No</td>
|
|
<td colspan="6"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">Date</td>
|
|
<td colspan="6"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">Name</td>
|
|
<td colspan="6"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1" width="16%">Employee ID</td>
|
|
<td colspan="2" width="16%"></td>
|
|
<td colspan="1" width="16%">Sex</td>
|
|
<td colspan="2" width="16%"></td>
|
|
<td colspan="1" width="16%">Age</td>
|
|
<td colspan="1" width="16%"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1">Department</td>
|
|
<td colspan="2"></td>
|
|
<td colspan="1">Division</td>
|
|
<td colspan="2"></td>
|
|
<td colspan="1">Mobile No</td>
|
|
<td colspan="1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">Supervisor</td>
|
|
<td colspan="2"></td>
|
|
<td colspan="2">Supervisor Contact No</td>
|
|
<td colspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">In Time at OHC or Call Received time:</td>
|
|
<td colspan="2"></td>
|
|
<td colspan="2">Name of OHC Personnel attending the emergency</td>
|
|
<td colspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">Caller Name</td>
|
|
<td colspan="2"></td>
|
|
<td colspan="2">Out Time of Patient</td>
|
|
<td colspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="7%">Chief Complaints:</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="4%">General Examination:</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">Pulse Rate</td>
|
|
<td colspan="2">BP</td>
|
|
<td colspan="2">SpO2</td>
|
|
<td colspan="2">RBS</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="4%">Systemic Examination:</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="4%">Is the Patient taking any Medications - Give Details:</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="4%">History of Drug Alleries:</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="2%">Diagnosis:</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="4%">Patient Admitted in Hospital: Yes/ No (If yes give details of hospital and time at which reached the hospital)</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="2%">Ambulance Used: Yes/No</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="4%">Treatment Given at Hospital:</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="4%">Patient Discharged From Hospital: Yes/ No (If Yes provide date & Time)</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="4%">Advice given on Discharge:</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" height="4%">Did Patient return to work?: Yes/ No (if yes provide date & Time)</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<form id="employeeDetailsFormPdf" action="" method="POST">
|
|
|
|
<input type="hidden" name="htmlText" id="htmlText" />
|
|
|
|
</form>
|
|
</div>
|
|
<script>
|
|
formSubmit();
|
|
|
|
function formSubmit() {
|
|
|
|
$("#htmlText").val($("#opd_form").html());
|
|
|
|
document.forms['employeeDetailsFormPdf'].action = "pdf_dynamic.php";
|
|
|
|
document.forms['employeeDetailsFormPdf'].method = "post";
|
|
|
|
document.forms['employeeDetailsFormPdf'].submit();
|
|
|
|
}
|
|
</script>
|