236 lines
8.5 KiB
PHP
236 lines
8.5 KiB
PHP
<?php include('techsyn_header.php'); ?>
|
|
|
|
<!-- 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>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div class="page-content">
|
|
<div class="box box-primary"
|
|
style="padding: 10px; margin: 2px 0px 50px 5px; width: 99.5%;">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">HISTORY PAST AND PRESENT ILLNESS [ if YES
|
|
check checkbox if NO uncheck checkbox ]</h3>
|
|
</div>
|
|
<div id="user-profile-2">
|
|
<form class="form-horizontal" id="medical_examination_form"
|
|
name="medical_examination_form" enctype="multipart/form-data" action="#"
|
|
method="post">
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<?php
|
|
$sql_section = "select * from history_parameter where param_id in (1,2,3,4,5,9) order by param_id asc";
|
|
$count=1;
|
|
|
|
$result_section = mysqli_query($conn,$sql_section);
|
|
while ($row_section = mysqli_fetch_assoc($result_section)) {
|
|
if($count%2!=0){
|
|
?><tr><?php
|
|
|
|
}?>
|
|
<td>
|
|
|
|
<input type="checkbox" id="<?php echo $row_section['param_name']; ?>" name="history_param" value="<?php echo $row_section['param_id']; ?>" >
|
|
<b> <?php echo $row_section['param_name'];
|
|
?></b>
|
|
</td>
|
|
<?php if($count%2==0){
|
|
?></tr><?php
|
|
}
|
|
$count++;
|
|
|
|
}?>
|
|
<!-- <tr>
|
|
<td><input type="checkbox" name="asthma" id="asthma" /><b> ASTHMA</b></td>
|
|
<td><input type="checkbox" name="diabetes" id=diabetes /><b> DIABETES</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="checkbox" name="tb" id="tb"/><b> T.B</b></td>
|
|
<td><input type="checkbox" name="high_blood_pressure" id="high_blood_pressure"/><b> HIGH BLOOD PRESSURE</b></td>
|
|
|
|
|
|
</tr>
|
|
<tr>
|
|
<td><input type="checkbox" name="epilepsy" id="epilepsy" /><b> EPILEPSY</b> </td>
|
|
<td><input type="checkbox" name="jaundice" id="jaundice" /> <b>JAUNDICE</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="checkbox" name="psychiatric_illness" id="psychiatric_illness" /> <b>PSYCHIATRIC ILLNESS</b> </td>
|
|
<td><input type="checkbox" name="hernia_hydrocele" id="hernia_hydrocele" /> <b>HERNIA/ HYDROCELE</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="checkbox" name="heart_disease" id="heart_disease" /><b> HEART DISEASE</b></td>
|
|
<td><input type="checkbox" name="piles_fistula" id="piles_fistula" /> <b>Piles/ Fistula</b></td>
|
|
</tr>-->
|
|
<tr>
|
|
<td colspan="2" ><b style="vertical-align: top">Present Complaint If any</b>
|
|
<textarea style="margin-left: 362px" rows="3" cols="100" name="present_complaint" id="present_complaint" ></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" ><b style="vertical-align: top">ARE YOU ON ANY REGULAR MEDICATION (IF YES, PLEASE SPECIFY)</b>
|
|
<textarea style="margin-left: 169px" rows="3" cols="100" name="regular_medication" id="regular_medication" ></textarea></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<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">
|
|
<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>
|
|
|
|
<div class="box-footer" style="text-align: 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-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>
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php include('techsyn_footer.php'); ?>
|
|
|
|
<script>
|
|
|
|
//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);
|
|
}
|
|
},
|
|
error:function(data){
|
|
BootstrapDialog.alert(" Error In Saving Past And Present Illness");
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
/* function (){
|
|
|
|
$.ajax({
|
|
url:'save_medical_examination.php',
|
|
type:'POST',
|
|
data:$("#medical_examination_form").serialize(),
|
|
success:function(data){
|
|
},
|
|
error:function(data){
|
|
|
|
}
|
|
});
|
|
|
|
}*/
|
|
</script>
|