134 lines
4.2 KiB
PHP
134 lines
4.2 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>
|
|
<i class="ace-icon fa fa-home home-icon"></i>
|
|
<a href="#">Home</a>
|
|
</li>
|
|
<li class="">Patient Visit</li><li class="active">Pending Medical Examination</li>
|
|
</ul>
|
|
|
|
</div>
|
|
<!-- End of breadcrumb -->
|
|
|
|
<div class="page-content">
|
|
|
|
|
|
<form name="flex_medical_form" method="post" action="" id="flex_medical_form">
|
|
<div id="flex1" style="width:100%">
|
|
<input type="hidden" name="medical_exam_id" id="medical_exam_id">
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</form>
|
|
</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: 'pending_for_medical_room_script.php',
|
|
dataType: 'json',
|
|
colModel: [
|
|
|
|
{display: 'Sr', name: 'count', width: w*.04, sortable: false, align: 'left'},
|
|
|
|
|
|
{display: 'Patient Name', name: 'fname', width: w*.1, sortable: true, align: 'left'},
|
|
{display: 'Phone Number', name: 'sbp', width: w*.1, sortable: true, align: 'left'},
|
|
{display: 'Gender', name: 'dbp', width: w*.1, sortable: true, align: 'left'},
|
|
{display: 'Patient Category', name: 'dvrt', width: w*.1, sortable: true, align: 'left'},
|
|
{display: 'History And Present Illness', name: '', width: w*.2, sortable: false, align: 'left'},
|
|
{display: 'Regular Medication', name: '', width: w*.2, sortable: false, align: 'left'},
|
|
{display: 'Medical Form Type', name: '', width: w*.1, sortable: false, align: 'left'},
|
|
//{display: '', name: '', width: w*.1, sortable: false, align: 'left'},
|
|
|
|
],
|
|
buttons: [
|
|
{separator: true},
|
|
|
|
|
|
],
|
|
searchitems: [
|
|
|
|
{display: 'Patient Name', name: 'patient_name', isdefault: true},
|
|
{display: 'Phone Number', name: 'primary_phone'}
|
|
],
|
|
sortname: "medical_exam_id",
|
|
sortorder: "asc",
|
|
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_medical_examination_form(medical_exam_id,patient_id,task){
|
|
|
|
if(medical_exam_id!='' && medical_exam_id!='' && patient_id!=null && patient_id!='' ){
|
|
$("#medical_exam_id").val(medical_exam_id);
|
|
$("#flex_medical_form").attr('method', 'POST');
|
|
|
|
if(task=='pme'){
|
|
$("#flex_medical_form").attr('action', 'add_patient_physical_parameters_pme.php?medical_exam_id='+medical_exam_id+'');
|
|
}else if(task=='ime_short'){
|
|
$("#flex_medical_form").attr('action', 'add_patient_physical_parameters_ime_short_term.php?medical_exam_id='+medical_exam_id+'');
|
|
}else if(task=='ame_greater_40'){
|
|
$("#flex_medical_form").attr('action', 'add_patient_physical_parameters.php?medical_exam_id='+medical_exam_id+'');
|
|
}else if(task=='ame_less_40'){
|
|
$("#flex_medical_form").attr('action', 'add_patient_physical_parameters_ame_below_40.php?medical_exam_id='+medical_exam_id+'');
|
|
|
|
}if(task=='ime_long'){
|
|
$("#flex_medical_form").attr('action', 'add_initial_medical_examination_longterm.php?medical_exam_id='+medical_exam_id+'');
|
|
|
|
}
|
|
|
|
$("#flex_medical_form").submit();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<?php include('techsyn_footer.php'); ?>
|
|
|
|
|
|
|