263 lines
7.7 KiB
PHP
263 lines
7.7 KiB
PHP
<?php include('techsyn_header.php'); ?>
|
|
<!-- Main Content Container for side bar and body-->
|
|
<div class="main-container ace-save-state" id="main-container">
|
|
<script type="text/javascript">
|
|
try{ace.settings.loadState('main-container')}catch(e){}
|
|
</script>
|
|
<?php include('techsyn_sidebar.php');
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
?>
|
|
|
|
|
|
<!--breadcrumb-->
|
|
<div class="main-content">
|
|
<div class="main-content-inner">
|
|
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
|
|
<ul class="breadcrumb">
|
|
<li class="#">
|
|
<i class="ace-icon fa fa-home home-icon"></i>
|
|
<a href="#">Home</a>
|
|
</li>
|
|
<li class="">Patient Visit</li><li class="active">COVID SCREENING</li>
|
|
</ul>
|
|
|
|
</div>
|
|
<!-- End of breadcrumb -->
|
|
|
|
|
|
<div class="page-content">
|
|
|
|
<form name="flex_medical_form" method="post" action="" id="flex_medical_form">
|
|
|
|
<input type="hidden" name="medical_exam_id" id="medical_exam_id"/>
|
|
|
|
<input type="hidden" name="patient_id" id="patient_id"/>
|
|
</form>
|
|
<form name="export_form" method="post" id="export_form" action="">
|
|
<input type="hidden" name="flex_medical_form" id="flex_medical_form"/>
|
|
<input type="hidden" name="pdf_action" id="pdf_action" value="pdf_covid_screening.php"/>
|
|
<input type="hidden" name="excel_action" id="excel_action" value="excel_covid_screening.php"/>
|
|
</form>
|
|
|
|
<div id="flex1" style="width:100%">
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- /.page-content -->
|
|
</div>
|
|
</div><!-- /.main-content -->
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
var w=screen.width*.90;
|
|
|
|
var h =0;
|
|
h =(window.innerHeight-($("#navbar").height()+$(".breadcrumbs").height()))*.75;
|
|
$("#flex1").flexigrid({
|
|
url: 'covid_screening_grid_script.php',
|
|
dataType: 'json',
|
|
colModel: [
|
|
|
|
{display: '', name: 'link', width: w*.1, sortable: false, align: 'left'},
|
|
{display: 'Sr', name: 'count', width: w*.04, sortable: false, align: 'left'},
|
|
|
|
{display: 'Screening Date', name: 'screening_date', width: w*.1, sortable: true, align: 'left'},
|
|
{display: 'Patient Name', name: 'patient_name', width: w*.16, sortable: true, align: 'left'},
|
|
|
|
//{display: 'Screening Date', name: 'medical_entry_date', width: w*.15, sortable: true, align: 'left'},
|
|
{display: 'Gpass/Ecode', name: 'emp_code', width: w*.07, sortable: true, align: 'left'},
|
|
|
|
{display: 'Patient Category', name: 'patient_cat_id', width: w*.1, sortable: true, align: 'left'},
|
|
|
|
//{display: 'Examination Type', name: '', width: w*.1, sortable: false, align: 'left'},
|
|
{display: 'Aadhar NO', name: 'aadhar_no', width: w*.12, sortable: true, align: 'left'},
|
|
{display: 'Phone NO.', name: 'primary_phone', width: w*.11, sortable: true, align: 'left'},
|
|
{display: 'Rat Taken', name: 'rac_test', width: w*.11, sortable: true, align: 'left'},
|
|
{display: 'Rat Result.', name: 'rac_result', width: w*.11, sortable: true, align: 'left'},
|
|
|
|
//{display: 'Delete', name: '', width: w*.1, sortable: false, align: 'left'},
|
|
|
|
],
|
|
buttons: [
|
|
|
|
|
|
// {name: 'Download Template', bclass: 'print_excel', onpress : download_template},
|
|
{name: 'PDF', bclass: 'print', onpress : pdf},
|
|
{separator: true},
|
|
{name: 'Excel', bclass: 'print_excel', onpress : excel},
|
|
{separator: true}
|
|
// {name: 'Upload Excel', bclass: 'print_excel', onpress : upload_excel},
|
|
|
|
],
|
|
searchitems: [
|
|
|
|
{display: 'Patient Name', name: 'patient_name', isdefault: true},
|
|
{display: 'GPASS/ECODE', name: 'emp_code'},
|
|
{display: 'Patient Category', name: 'patient_cat_name'},
|
|
{display: 'Rat Taken', name: 'rac_test'},
|
|
{display: 'Rat Result', name: 'rac_result'},
|
|
{display: 'Aadhar No', name: 'aadhar_no'}
|
|
],
|
|
sortname: "a.last_modified",
|
|
sortorder: "desc",
|
|
usepager: true, //pagination
|
|
|
|
useRp: true,
|
|
rp: 50, //records per page
|
|
showTableToggleBtn: false, //toggle button for the whole table
|
|
resizable: true,
|
|
//width: w,
|
|
height: h,
|
|
singleSelect: true
|
|
});
|
|
});
|
|
|
|
|
|
function open_covid_pdf(patient_id){
|
|
|
|
if(patient_id!=null && patient_id!=''){
|
|
$("#patient_id").val(patient_id);
|
|
$("#flex_medical_form").attr('method', 'POST');
|
|
$("#flex_medical_form").attr('action', 'covid_testing_pdf.php');
|
|
//$("#flex_medical_form").attr('action', 'open_patient_physical_parameters.php?medical_exam_id='+medical_exam_id+'');
|
|
$("#flex_medical_form").submit();
|
|
}
|
|
|
|
}
|
|
|
|
function pdf(){
|
|
window.open('ajax_pdf.php','Patient List');
|
|
}
|
|
function excel(){
|
|
window.open('ajax_excel.php','Report List');
|
|
}
|
|
|
|
function delete_vaccine(patient_id){
|
|
|
|
$.ajax({
|
|
url : 'delete_covaccine.php',
|
|
data:{patient_id:patient_id},
|
|
type : 'POST',
|
|
dataType:'json',
|
|
success : function(data) {
|
|
|
|
if(data=='SUCCESS') {
|
|
|
|
BootstrapDialog.alert('COVID Details Deleted Successfully!');
|
|
$("#flex1").flexReload();
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
error : function(data) {
|
|
BootstrapDialog.alert('Error: Covid Details Not Deleted!');
|
|
return;
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function open_vaccine(patient_id,access){
|
|
if(access=='V'){
|
|
$("#save_button").hide()
|
|
}else if(access=='E')
|
|
$("#save_button").show()
|
|
|
|
$.ajax({
|
|
url : 'select_covaccine.php',
|
|
data:{patient_id:patient_id},
|
|
type : 'POST',
|
|
dataType:'json',
|
|
success : function(data) {
|
|
$("#patient_id").val(data.patient_id);
|
|
$("#patient_name").val(data.patient_name);
|
|
$('#emp_code').val(data.emp_code)
|
|
$("#aadhar_no").val(data.aadhar_no);
|
|
$("#primary_phone").val(data.primary_phone);
|
|
$("#rac_test").val(data.rac_test);
|
|
$("#rac_result").val(data.rac_result);
|
|
|
|
|
|
|
|
// $('#modal-add-ambulance-form').modal("show");
|
|
},
|
|
error : function(data) {
|
|
BootstrapDialog.alert('Error Populating Covid Details');
|
|
return;
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function open_covid_form(patient_id){
|
|
|
|
if(patient_id!=null && patient_id!=''){
|
|
$("#patient_id").val(patient_id);
|
|
$("#flex_medical_form").attr('method', 'POST');
|
|
$("#flex_medical_form").attr('action', 'covid_screening_next.php');
|
|
//$("#flex_medical_form").attr('action', 'open_patient_physical_parameters.php?medical_exam_id='+medical_exam_id+'');
|
|
$("#flex_medical_form").submit();
|
|
}
|
|
|
|
}
|
|
|
|
function delete_medical_examination_form(medical_exam_id,patient_id,task){
|
|
if(medical_exam_id!='' && medical_exam_id!='' && patient_id!=null && patient_id!='' && task!="" && task!=""){
|
|
BootstrapDialog.confirm('Are you sure to delete Medical Examination Form?', function(result){
|
|
if(result) {
|
|
$.ajax({
|
|
url:'delete_medical_examination_form.php',
|
|
type:'POST',
|
|
data:{medical_exam_id:medical_exam_id,patient_id:patient_id,task:task},
|
|
dataType:'json',
|
|
success:function(data){
|
|
if(data.indexOf("SUCCESS")!=-1){
|
|
BootstrapDialog.alert("Medical Examination Form Deleted Successfully");
|
|
$('#flex1').flexReload();
|
|
}
|
|
|
|
|
|
|
|
},
|
|
error:function(data){
|
|
BootstrapDialog.alert(" Error In Deleting Medical Examination ");
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<?php include('techsyn_footer.php'); ?>
|
|
|
|
|
|
|