354 lines
12 KiB
PHP
354 lines
12 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'); ?>
|
|
|
|
<!--breadcrumb-->
|
|
<div class="main-content">
|
|
<div class="main-content-inner">
|
|
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
|
|
<ul class="breadcrumb">
|
|
<li>
|
|
<i class="ace-icon fa fa-home home-icon"></i>
|
|
<a href="#">Home</a>
|
|
</li>
|
|
<li class="#">Patient Visit</li>
|
|
<li class="active">Pending Consultation</li>
|
|
</ul>
|
|
</div>
|
|
<!-- End of breadcrumb -->
|
|
|
|
|
|
<div>
|
|
|
|
<form name="f1" method="post" action="" id="flex_form_unit">
|
|
<div id="flex1" style="width:100%">
|
|
</div>
|
|
<input type="hidden" name="flex_unit_id" id="flex_unit_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_pending_patient_list.php" />
|
|
<input type="hidden" name="excel_action" id="excel_action" value="excel_pending_patient_list.php" />
|
|
</form>
|
|
<form name="flex_appointment_form" method="post" id="flex_appointment_form" action="">
|
|
<input type="hidden" name="appointmentId" id="appointmentId" /> <input type="hidden" name="flex_opd_id" id="flex_opd_id" /> <input type="hidden" name="returnPage" id="returnPage" />
|
|
</form>
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- /.page-content -->
|
|
</div>
|
|
</div><!-- /.main-content -->
|
|
<script>
|
|
$(function() {
|
|
|
|
var w = screen.width * .90;
|
|
|
|
h = (screen.height - ($("#navbar").height() + $(".breadcrumbs").height())) * .67;
|
|
$("#flex1").flexigrid({
|
|
url: 'pending_patient_list_script.php',
|
|
|
|
dataType: 'json',
|
|
colModel: [{
|
|
display: 'Sr',
|
|
name: 'count',
|
|
width: w * .05,
|
|
sortable: false,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: '',
|
|
name: 'link',
|
|
width: w * .1,
|
|
sortable: false,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Date',
|
|
name: 'appointment_date',
|
|
width: w * .1,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Ticket No',
|
|
name: 'ticket_no',
|
|
width: w * .06,
|
|
sortable: false,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'followup',
|
|
name: 'followup',
|
|
width: w * .06,
|
|
sortable: false,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Emp Code',
|
|
name: 'emp_code',
|
|
width: w * .08,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Patient Name',
|
|
name: 'patient_name',
|
|
width: w * .15,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Complaints',
|
|
name: 'complaints',
|
|
width: w * .15,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Emergency?',
|
|
name: 'IsEmergency',
|
|
width: w * .06,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Injury?',
|
|
name: 'appointment_type',
|
|
width: w * .06,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Vitals',
|
|
name: 'followup',
|
|
width: w * .1,
|
|
sortable: false,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Reception Remarks',
|
|
name: 'remarks_rece',
|
|
width: w * .15,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Last Updated By',
|
|
name: 'modified_by',
|
|
width: w * .08,
|
|
sortable: true,
|
|
align: 'left'
|
|
}
|
|
|
|
],
|
|
buttons: [
|
|
|
|
|
|
{
|
|
name: 'PDF',
|
|
bclass: 'print',
|
|
onpress: pdf
|
|
},
|
|
{
|
|
separator: true
|
|
},
|
|
{
|
|
name: 'Excel',
|
|
bclass: 'print_excel',
|
|
onpress: excel
|
|
},
|
|
{
|
|
separator: true
|
|
},
|
|
|
|
],
|
|
searchitems: [{
|
|
display: 'Emp Code',
|
|
name: 'emp_code',
|
|
isdefault: true
|
|
},
|
|
{
|
|
display: 'Ticket No',
|
|
name: 'ticket_no',
|
|
},
|
|
|
|
{
|
|
display: 'Appointment Date (dd/mm/yyyy)',
|
|
name: 'appointment_date'
|
|
},
|
|
|
|
{
|
|
display: 'Patient Name',
|
|
name: 'patient_name',
|
|
},
|
|
|
|
{
|
|
display: 'Complaints',
|
|
name: 'complaints',
|
|
},
|
|
|
|
{
|
|
display: 'Emergency',
|
|
name: 'isEmergency',
|
|
|
|
},
|
|
|
|
{
|
|
display: 'Injury',
|
|
name: 'isInjury',
|
|
|
|
},
|
|
|
|
{
|
|
display: 'Remarks',
|
|
name: 'remarks_rece',
|
|
|
|
},
|
|
|
|
],
|
|
sortname: "appointment_date",
|
|
sortorder: "desc",
|
|
usepager: true, //pagination
|
|
//title:"Employee OPD",
|
|
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_employee_appointment(appointmentId, appointment_type, emp_id, action) {
|
|
// if (appointment_type == "O") {
|
|
// if (action == 'V') {
|
|
// document.forms['flex_appointment_form'].action = "view_opd.php";
|
|
// } else if (action == 'E') {
|
|
// document.forms["flex_appointment_form"].action = "edit_opd.php";
|
|
// }
|
|
// } else if (appointment_type == "I") {
|
|
// if (action == 'V') {
|
|
// document.forms['flex_appointment_form'].action = "view_injury.php";
|
|
// } else if (action == 'E') {
|
|
// document.forms['flex_appointment_form'].action = "edit_injury.php";
|
|
// }
|
|
// }
|
|
// $("#flex_appointment_form").method = "post";
|
|
// $("#flex_appointment_form").find("#appointmentId").val(appointmentId);
|
|
// $("#flex_appointment_form").find("#flex_opd_id").val(emp_id);
|
|
// $("#flex_appointment_form").find("#returnPage").val("appointment_list.php");
|
|
// $("#flex_appointment_form").submit();
|
|
// }
|
|
|
|
function open_employee_appointment(appointmentId, appointment_type, emp_id, action, follow_up) {
|
|
if (appointment_type == "O") {
|
|
if (action == 'V') {
|
|
document.forms['task_form'].action = "view_opd.php";
|
|
} else if (action == 'E' || action == 'F') {
|
|
document.forms["task_form"].action = "edit_opd.php";
|
|
}
|
|
} else if (appointment_type == "I") {
|
|
if (action == 'V') {
|
|
document.forms['task_form'].action = "view_injury.php";
|
|
} else if (action == 'E' || action == 'F') {
|
|
document.forms['task_form'].action = "edit_injury.php";
|
|
}
|
|
}
|
|
$("#task_form").method = "post";
|
|
if (action == 'F') {
|
|
$("#task_form").append(jQuery('<input>', {
|
|
'name': 'followup_to_opd',
|
|
'id': 'followup_to_opd',
|
|
'value': appointmentId,
|
|
'type': 'hidden'
|
|
}));
|
|
$("#task_form").append(jQuery('<input>', {
|
|
'name': 'followup_id',
|
|
'id': 'followup_id',
|
|
'value': follow_up,
|
|
'type': 'hidden'
|
|
}));
|
|
} else {
|
|
$("#task_form").append(jQuery('<input>', {
|
|
'name': 'appointmentId',
|
|
'id': 'appointmentId',
|
|
'value': appointmentId,
|
|
'type': 'hidden'
|
|
}));
|
|
}
|
|
$("#task_form").append(jQuery('<input>', {
|
|
'name': 'emp_id',
|
|
'id': 'emp_id',
|
|
'value': emp_id,
|
|
'type': 'hidden'
|
|
}));
|
|
|
|
$("#task_form").append(jQuery('<input>', {
|
|
'name': 'flex_opd_id',
|
|
'id': 'flex_opd_id',
|
|
'value': emp_id,
|
|
'type': 'hidden'
|
|
}));
|
|
$("#task_form").append(jQuery('<input>', {
|
|
'name': 'returnPage',
|
|
'id': 'returnPage',
|
|
'value': "appointment_list.php",
|
|
'type': 'hidden'
|
|
}));
|
|
$("#task_form").submit();
|
|
}
|
|
|
|
|
|
function pdf() {
|
|
window.open('ajax_pdf.php', 'Pending Patient List');
|
|
}
|
|
|
|
function excel() {
|
|
window.open('ajax_excel.php', 'Pending Patient List');
|
|
}
|
|
|
|
function delete_employee_appointment_history(appointment_id) {
|
|
//$("#flex_appointment_id").val(appointment_id);
|
|
|
|
BootstrapDialog.confirm('Are you sure to delete?', function(result) {
|
|
if (result) {
|
|
$.ajax({
|
|
url: 'delete_appointment.php',
|
|
type: "POST",
|
|
data: {
|
|
flex_appointment_id: appointment_id
|
|
},
|
|
success: function(data) {
|
|
if (data.indexOf("SUCCESS") != -1) {
|
|
var history_record = $("#history_record").text();
|
|
|
|
$('#history_record').text(parseInt(history_record) - 1);
|
|
BootstrapDialog.alert('Deleted Successfully.');
|
|
$("#flex1").flexReload();
|
|
//loadAppointmentHistory('<?php echo $_REQUEST['flex_opd_id'] ?>');
|
|
|
|
} else {
|
|
BootstrapDialog.alert('Error Deleting');
|
|
}
|
|
return;
|
|
},
|
|
error: function(data) {
|
|
BootstrapDialog.alert('Error Deleting');
|
|
return;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
}
|
|
</script>
|
|
<?php include 'techsyn_footer.php'; ?>
|