269 lines
8.0 KiB
PHP
269 lines
8.0 KiB
PHP
<?php
|
|
include ('techsyn_header.php');
|
|
?>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<!-- Main Content Container for side bar and body-->
|
|
<style>
|
|
b {
|
|
margin-left: 40px;
|
|
}
|
|
</style>
|
|
<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'); ?>
|
|
|
|
<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">Health Surveillance</li>
|
|
<li class="#">
|
|
<?php
|
|
|
|
$sql = "select patient_name from patient_master WHERE id ='" . $_REQUEST ['flex_patient_id'] . "' ";
|
|
// echo $_REQUEST ['flex_patient_id'] ;
|
|
if (! $result = @mysqli_query($conn,$sql )) {
|
|
exit ( mysqli_error($conn) );
|
|
}
|
|
if (mysqli_num_rows ( $result ) > 0) {
|
|
while ( $row = @mysqli_fetch_array ( $result ) ) {
|
|
echo $row ['patient_name'];
|
|
}
|
|
}
|
|
error_log ( $sql );
|
|
?>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
<div class="mainPanel">
|
|
<div class="panel-group" id="accordion">
|
|
<div class="panel panel-default"
|
|
style="padding: 10px; margin: 2px 0px 50px 5px; width: 99.5%;">
|
|
<div class="panel-body">
|
|
<form class="form-horizontal" id="medical_examination_form"
|
|
name="medical_examination_form" enctype="multipart/form-data"
|
|
action="#" method="post">
|
|
|
|
<?php include('patient_profile_panel_receptionist.php'); ?>
|
|
<?php include('patient_past_history_panel.php'); ?>
|
|
|
|
<br>
|
|
|
|
|
|
<center><button class="btn btn-primary" type="button"
|
|
id="save_button" onclick="save_medical_examination()">
|
|
|
|
<i class="ace-icon fa fa-save"></i> Save
|
|
|
|
</button>
|
|
<!-- <button class="btn btn-primary" type="button"
|
|
id="update_button" style="display: none"
|
|
onclick="save_employee()">
|
|
|
|
<i class="ace-icon fa fa-floppy"></i> Update
|
|
|
|
</button> -->
|
|
<button class="btn btn-success" onclick="navigate()"
|
|
type="button" id="next_button" disabled>
|
|
|
|
<i class="ace-icon fa fa-forward"></i>Next
|
|
|
|
</button></center>
|
|
<!--
|
|
<button class="btn btn-warning" type="reset">
|
|
|
|
<i class="ace-icon fa fa-undo"></i> Reset
|
|
|
|
</button>
|
|
<button class="btn btn-warning" type="button"
|
|
id="forwardButton">
|
|
|
|
<i class="ace-icon fa fa-forward"></i> Forward
|
|
|
|
</button>
|
|
|
|
-->
|
|
|
|
|
|
<input type="hidden" id="task" name="task"
|
|
value="<?php echo $_REQUEST['task']?>"> <input type="hidden"
|
|
name="history_parameter" id="history_parameter"> <input
|
|
type="hidden" name="medical_exam_id" id="medical_exam_id"
|
|
value='<?php echo $_REQUEST['medical_exam_id']?>'> <input type="hidden"
|
|
name="medical_examination_status"
|
|
id="medical_examination_status" value="N"> <input
|
|
type="hidden" name="patient_id" id="patient_id"
|
|
value="<?php echo $_REQUEST['flex_patient_id']; ?>">
|
|
</div>
|
|
<!--rnd of occupational_history panel-->
|
|
|
|
|
|
</div>
|
|
<!--rnd of panel default panel-->
|
|
</form>
|
|
</div>
|
|
<!--end of panel body at top-->
|
|
|
|
|
|
</div>
|
|
<!--end of top panel-->
|
|
|
|
|
|
|
|
</div>
|
|
<!--end of panel group-->
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php include('techsyn_footer.php'); ?>
|
|
|
|
<script>
|
|
$('#no_of_child').blur(function(){
|
|
if (0 > $(this).val() || $(this).val() > 10){
|
|
BootstrapDialog.alert("Children Should be between 0 to 10");
|
|
$(this).val('');
|
|
}else{
|
|
$('#dob').val('');
|
|
}
|
|
});
|
|
for(var i = 0 ; i < 2; i++){
|
|
$('#period_services'+i).blur(function(){
|
|
if (0 > $(this).val() || $(this).val() > 30){
|
|
BootstrapDialog.alert("Period of service should be maximum 30 years");
|
|
$(this).val('');
|
|
}else{
|
|
$('#dob').val('');
|
|
}
|
|
});
|
|
}
|
|
|
|
//function populatePopup(){
|
|
$("#forwardButton").on("click", function(){
|
|
$("#save_button").hide();
|
|
BootstrapDialog.show({
|
|
title: 'Forward',
|
|
message: '<select class="form-control" id="forward_status" style="margin-left:100px;width:60%"><option value="" >Please Select Forward Option</option><option value="M" > Medical Room </option><option value="D" >Doctor </option></select>',
|
|
buttons: [{
|
|
label: 'OK',
|
|
action: function() {
|
|
save_forward_status();
|
|
$(".close").click();
|
|
}
|
|
}]
|
|
});
|
|
|
|
});
|
|
|
|
function save_forward_status(){
|
|
|
|
$.ajax({
|
|
url:'save_medical_examination.php',
|
|
type:'POST',
|
|
data:{forward_status:$("#forward_status").val(),medical_exam_id:$("#medical_exam_id").val()},
|
|
success:function(data){
|
|
BootstrapDialog.alert("Foward Status Saved Successfully");
|
|
},
|
|
error:function(data){
|
|
BootstrapDialog.alert(" Error In Saving Foward Status ");
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function save_medical_examination(){
|
|
var history_array=[];
|
|
$("input:checkbox[name='history_param']:checked").each(function(){
|
|
history_array.push($(this).val());
|
|
$("input[name=history_parameter]").val(history_array.join(', '));
|
|
});
|
|
$.ajax({
|
|
url:'save_medical_examination.php',
|
|
type:'POST',
|
|
data:$("#medical_examination_form").serialize(),
|
|
dataType:'json',
|
|
success:function(data){
|
|
BootstrapDialog.alert("Past And Present Illness Saved Successfully");
|
|
if(data.medical_exam_id!=null && data.medical_exam_id!=""){
|
|
$("#medical_exam_id").val(data.medical_exam_id);
|
|
}
|
|
// location.href='pending_medical_examination_list.php';
|
|
document.getElementById("next_button").disabled = false;
|
|
},
|
|
error:function(data){
|
|
BootstrapDialog.alert(" Error In Saving Past And Present Illness");
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
function navigate(){
|
|
var history_array=[];
|
|
$("input:checkbox[name='history_param']:checked").each(function(){
|
|
history_array.push($(this).val());
|
|
$("input[name=history_parameter]").val(history_array.join(', '));
|
|
});
|
|
$.ajax({
|
|
url:'save_medical_examination.php',
|
|
type:'POST',
|
|
data:$("#medical_examination_form").serialize(),
|
|
dataType:'json',
|
|
success:function(data){
|
|
// BootstrapDialog.alert("Past And Present Illness Saved Successfully");
|
|
if(data.medical_exam_id!=null && data.medical_exam_id!=""){
|
|
$("#medical_exam_id").val(data.medical_exam_id);
|
|
}
|
|
var newForm = jQuery('<form>', {
|
|
'action': 'open_patient_physical_parameters.php',
|
|
'target': '_top',
|
|
'method': 'POST'
|
|
}).append(jQuery('<input>', {
|
|
'name': 'patient_id',
|
|
'value': '<?php echo $_REQUEST['flex_patient_id']?>',
|
|
'type': 'hidden'
|
|
})).append(jQuery('<input>', {
|
|
'name': 'medical_exam_id',
|
|
'value': $("#medical_exam_id").val(),
|
|
'type': 'hidden'
|
|
}));
|
|
newForm.appendTo( document.body )
|
|
newForm.submit();
|
|
},
|
|
error:function(data){
|
|
BootstrapDialog.alert(" Error In Saving Past And Present Illness");
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
|
|
$('.date-picker').datepicker({
|
|
autoclose: true,
|
|
endDate: 'current',
|
|
todayHighlight: true
|
|
|
|
})
|
|
//show datepicker when clicking on the icon
|
|
.next().on(ace.click_event, function(){
|
|
$(this).prev().focus();
|
|
});
|
|
|
|
|
|
</script>
|