466 lines
16 KiB
PHP
466 lines
16 KiB
PHP
|
<link rel="stylesheet"
|
||
|
href="assets/font-awesome/4.5.0/css/font-awesome.min.css" />
|
||
|
|
||
|
<!-- page specific plugin styles -->
|
||
|
<link rel="stylesheet" href="assets/css/jquery-ui.custom.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/chosen.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/bootstrap-datepicker3.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/bootstrap-timepicker.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/daterangepicker.min.css" />
|
||
|
<link rel="stylesheet"
|
||
|
href="assets/css/bootstrap-datetimepicker.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/bootstrap-colorpicker.min.css" />
|
||
|
<link rel="stylesheet"
|
||
|
href="adminlte/bower_components/bootstrap/less/type.less" />
|
||
|
<script src="assets/js/jquery-ui.custom.min.js"></script>
|
||
|
<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
|
||
|
<script src="assets/js/chosen.jquery.min.js"></script>
|
||
|
<script src="assets/js/spinbox.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-datepicker.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-timepicker.min.js"></script>
|
||
|
<script src="assets/js/jquery.dataTables.min.js"></script>
|
||
|
<script src="assets/js/jquery.dataTables.bootstrap.min.js"></script>
|
||
|
<script src="assets/js/dataTables.buttons.min.js"></script>
|
||
|
<script src="assets/js/buttons.flash.min.js"></script>
|
||
|
<script src="assets/js/buttons.html5.min.js"></script>
|
||
|
<script src="assets/js/buttons.print.min.js"></script>
|
||
|
<script src="assets/js/buttons.colVis.min.js"></script>
|
||
|
<script src="assets/js/dataTables.select.min.js"></script>
|
||
|
|
||
|
|
||
|
<script src="assets/js/moment.min.js"></script>
|
||
|
<script src="assets/js/daterangepicker.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-datetimepicker.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-colorpicker.min.js"></script>
|
||
|
<script src="assets/js/jquery.knob.min.js"></script>
|
||
|
<script src="assets/js/autosize.min.js"></script>
|
||
|
<script src="assets/js/jquery.inputlimiter.min.js"></script>
|
||
|
<script src="assets/js/jquery.maskedinput.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-tag.min.js"></script>
|
||
|
<script src="assets/js/ace-elements.min.js"></script>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function () {
|
||
|
$(".glyphicon").css("top","");
|
||
|
|
||
|
|
||
|
});
|
||
|
|
||
|
function open_treatments(appointment_id){
|
||
|
$('#modal-add-consultation').modal("show");
|
||
|
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
<?php
|
||
|
include ('includes/config/config.php');
|
||
|
$rolecode = $_SESSION['RoleCode'];
|
||
|
|
||
|
if (isset($_REQUEST['appointmentId'])) {
|
||
|
$sql = "select * from visitors_employee_appointment where appointment_id='" . $_REQUEST['appointmentId'] . "'";
|
||
|
//echo "query:".$sql;
|
||
|
$appointment_id=$_REQUEST['appointmentId'];
|
||
|
|
||
|
//echo $appointment_id;
|
||
|
error_log("sql: 65: ".$sql);
|
||
|
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
$num_rows = @mysqli_num_rows($result);
|
||
|
$row = null;
|
||
|
|
||
|
// echo fhfh;
|
||
|
if ($num_rows > 0) {
|
||
|
$row = @mysqli_fetch_array($result);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
?>
|
||
|
<script>
|
||
|
var rolecode='<?php echo $_SESSION ['RoleCode']?>';
|
||
|
</script>
|
||
|
|
||
|
|
||
|
<form id="opd_form" method="post">
|
||
|
<div class="widget-box box box-success" id="opd_form_pdf"
|
||
|
style="margin-left: 5px; margin-right: 50px; width: 99%">
|
||
|
<div class="widget-header" data-action="fullscreen">
|
||
|
<h5 class="widget-title">Patient OPD - <?php echo $patient_name?></h5>
|
||
|
|
||
|
|
||
|
<div class="widget-toolbar" style="float: right">
|
||
|
|
||
|
<div class="clearfix">
|
||
|
|
||
|
<div class="pull-right tableTools-container">
|
||
|
|
||
|
<div class="dt-buttons btn-overlap btn-group ">
|
||
|
<a href="<?php echo $_REQUEST['returnPage'].'&backButon=back'?>"
|
||
|
class="dt-button buttons-csv buttons-html5 btn btn-white btn-primary btn-bold save_button"
|
||
|
style="float: left;">Back</a> <a
|
||
|
class="dt-button buttons-print btn btn-white btn-primary btn-bold"
|
||
|
onclick="exporttopdf();" tabindex="0"
|
||
|
aria-controls="dynamic-table" data-original-title="" title=""><span><i
|
||
|
class="fa fa-print bigger-110 grey"></i> <span class="hidden">Print</span></span></a>
|
||
|
|
||
|
|
||
|
|
||
|
<a
|
||
|
class="dt-button buttons-print btn btn-white btn-primary btn-bold"
|
||
|
data-action="fullscreen" tabindex="0"
|
||
|
aria-controls="dynamic-table" data-original-title="" title=""><span><i
|
||
|
class="fa fa fa-expand bigger-110 grey"></i> <span
|
||
|
class="hidden">Maximize</span></span></a>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="widget-body">
|
||
|
<div class="widget-main">
|
||
|
<div class="row">
|
||
|
<div class="col-xs-10 table-responsive">
|
||
|
<div class="widget-box box box-warning">
|
||
|
|
||
|
<div class="widget-body">
|
||
|
<div class="widget-main">
|
||
|
<div class="row">
|
||
|
<div class="col-xs-12">
|
||
|
<div class="row">
|
||
|
|
||
|
<div class="col-sm-3">
|
||
|
<label class="control-label" for="appoint"><strong
|
||
|
style="font-size: 11px">Ticket No</strong></label> <input
|
||
|
id="ticket_no" type="hidden" style="height: 30px"
|
||
|
class="form-control" name="ticket_no"
|
||
|
value="<?php echo $row['ticket_no'];?>" /> <input
|
||
|
id="appoint" type="hidden" style="height: 30px"
|
||
|
class="form-control" name="appoint"
|
||
|
value="<?php echo $_REQUEST['appointmentId']?>"/>
|
||
|
|
||
|
<div class="input-group">
|
||
|
|
||
|
|
||
|
<?php echo $row['ticket_no'];?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-sm-3">
|
||
|
<label class="control-label" for="appointment_date"><strong
|
||
|
style="font-size: 11px">Token No</strong></label>
|
||
|
|
||
|
<div class="input-group">
|
||
|
<?php echo $row['token_no']?>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="col-sm-3">
|
||
|
<label class="control-label" for="appointment_date"><strong
|
||
|
style="font-size: 11px">Visit Date</strong></label>
|
||
|
|
||
|
<div class="input-group">
|
||
|
<span><?php echo date_format(date_create($row['appointment_date']),"d-M-Y h:i:sa ")?> </span>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class=" col-sm-3">
|
||
|
<label class="control-label" for="followup_to_opd"><strong
|
||
|
style="font-size: 11px">Followup to(if Applicable)</strong></label>
|
||
|
|
||
|
<div class="input-group">
|
||
|
<?php echo getFieldFromTable("CONCAT(ticket_no,' ',DATE_FORMAT(appointment_date,'%d-%b-%Y %l:%i %p '))",'employee_appointment','appointment_id',$row['followup_to_opd'])?>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="space-6"></div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-sm-4">
|
||
|
<label class="control-label" for="form-field-8"><strong
|
||
|
style="font-size: 11px">Complaints</strong></label>
|
||
|
<div class="input-group">
|
||
|
<?php echo nl2br($row['complaints'])?></div>
|
||
|
</div>
|
||
|
<div class="col-sm-4">
|
||
|
<label class="control-label" for="form-field-8"><strong
|
||
|
style="font-size: 11px">Remarks/Follow-up Investigation Details</strong></label>
|
||
|
<div class="input-group">
|
||
|
<?php echo nl2br($row['remarks_rece'])?></div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="col-sm-4">
|
||
|
<label class="control-label" for="form-field-8"><strong
|
||
|
style="font-size: 11px">Examination Findings</strong></label>
|
||
|
<div class="input-group">
|
||
|
<?php echo nl2br($row['examination_remarks'])?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="space-6"></div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-sm-6">
|
||
|
<label class="control-label" for="ailment"><strong
|
||
|
style="font-size: 11px">Diagnosis</strong></label> <input
|
||
|
name="ailment[]" type="hidden" data-placeholder="Ailments"
|
||
|
value="<?php echo $row['ailment_ids'] ?>"> <input
|
||
|
name="ailment_system[]" type="hidden"
|
||
|
data-placeholder="Ailments"
|
||
|
value="<?php echo $row['ailment_system_ids'] ?>"> <input
|
||
|
name="injury_part[]" type="hidden"
|
||
|
data-placeholder="Ailments"
|
||
|
value="<?php echo $row['injury_parts'] ?>"> <input
|
||
|
name="health_advice_name[]" type="hidden"
|
||
|
data-placeholder="Ailments"
|
||
|
value="<?php echo $row['health_advices'] ?>"> <input
|
||
|
name="isEmergency" type="hidden"
|
||
|
data-placeholder="Ailments"
|
||
|
value="<?php echo $row['IsEmergency'] ?>">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<?php
|
||
|
|
||
|
$ailment_names = $row['ailments_new'];
|
||
|
|
||
|
$ailment_system_name =$row['ailment_systems_new'];
|
||
|
|
||
|
?>
|
||
|
|
||
|
|
||
|
<div class="input-group"> <?php echo $ailment_names?></div>
|
||
|
</div>
|
||
|
<div class="col-sm-6">
|
||
|
<label class="control-label" for="ailment_system"><strong
|
||
|
style="font-size: 11px">Ailment System</strong></label>
|
||
|
<div class="input-group"> <?php echo $ailment_system_name?></div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="space-6"></div>
|
||
|
|
||
|
<div class="row">
|
||
|
|
||
|
<div class="col-sm-4">
|
||
|
<label class="control-label " for="medicine_disbursement"><strong
|
||
|
style="font-size: 11px">Medicine Disbursement</strong> </label>
|
||
|
|
||
|
<?php echo ($row['medi_disbursement']=='Y')? "Yes":"No" ?>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="col-sm-4">
|
||
|
<label class=" control-label " for="doctor_discussed"><strong
|
||
|
style="font-size: 11px">Doctor Discussed?</strong> </label>
|
||
|
|
||
|
<?php echo ($row['doctor_discussed']=='Y')? "Yes":"No" ?>
|
||
|
</div>
|
||
|
<div class="col-sm-4">
|
||
|
<label class=" control-label " for="doctor_discussed"><strong
|
||
|
style="font-size: 11px">Doctor Consulted?</strong> </label>
|
||
|
|
||
|
<?php echo ($row['doctor_attended_flag']=='Y')? "Yes":"No" ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12 table-responsive">
|
||
|
<?php $appointment_id=$_REQUEST['appointmentId'] ; ?>
|
||
|
<?php include('treatment_view_common.php'); ?>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="space-6"></div>
|
||
|
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12 table-responsive">
|
||
|
<label class="control-label" for="referral"><strong
|
||
|
style="font-size: 11px">Additional Recommendations(If Any)</strong></label>
|
||
|
<?php echo nl2br($row['external_treatments'])?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
|
||
|
<div class="row">
|
||
|
|
||
|
<div class="col-sm-6">
|
||
|
<label class="control-label" for="referral"><strong
|
||
|
style="font-size: 11px">Referral</strong></label>
|
||
|
<div class="input-group"><?php echo nl2br(($row['referral']!='')?$row['referral']:"N/A")?></div>
|
||
|
</div>
|
||
|
|
||
|
<div class="col-sm-6">
|
||
|
<label class="control-label" for="followup"><strong
|
||
|
style="font-size: 11px">Follow-up</strong></label>
|
||
|
<div class="input-group"><?php echo nl2br(($row['followup']!='')?$row['followup']:"N/A")?></div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<!-- /.col-xs-12 -->
|
||
|
</div>
|
||
|
<!--row end-->
|
||
|
|
||
|
</div>
|
||
|
<!--end of widget-main-->
|
||
|
</div>
|
||
|
<!--end of widget-body-->
|
||
|
</div>
|
||
|
<!--end of widget-box-->
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="col-xs-2 table-responsive">
|
||
|
<div class="widget-box box box-danger">
|
||
|
|
||
|
<div class="widget-body">
|
||
|
<div class="widget-main">
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<label class="control-label" for="form-field-select-1"><strong
|
||
|
style="font-size: 11px">Emergency?</strong></label>
|
||
|
: <?php if($row['IsEmergency']==0){echo "No";}else {echo "Yes";}?>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<div>
|
||
|
<div class="col-sm-3">SBP:<?php echo $row['bp_sbp']?></div>
|
||
|
<div class="col-sm-3">DBP:<?php echo $row['bp_dbp']?></div>
|
||
|
<div class="col-sm-6">Heart Rate:<?php echo $row['heart_rate']?></div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<div>
|
||
|
<div class="col-sm-3">FBS:<?php echo $row['blood_sugar_fbs']?></div>
|
||
|
<div class="col-sm-3">RBS:<?php echo $row['blood_sugar_rbs']?></div>
|
||
|
<div class="col-sm-3">PPBS:<?php echo $row['blood_sugar_ppbs']?></div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<div>
|
||
|
<div class="col-sm-6">Temp:<?php echo $row['temperature']?></div>
|
||
|
<div class="col-sm-6">SPOC2%:<?php echo $row['spo2_percent']?></div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<label class="control-label" for="injury_part"><strong
|
||
|
style="font-size: 11px">Affected Body Parts</strong></label>
|
||
|
|
||
|
<div class="input-group"> <?php echo $row['injury_parts_new']?></div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<label class="control-label" for="health_advice_name"><strong
|
||
|
style="font-size: 11px">Health Advices</strong></label>
|
||
|
<div class="input-group"><?php echo nl2br($row['health_advices_new'])?></div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<label class="control-label" for="additional_advices"><strong
|
||
|
style="font-size: 11px">Doctor Recommended Tests</strong></label>
|
||
|
|
||
|
<div class="input-group"> <?php echo $row['recommended_tests_new']; ?></div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<label class="control-label" for="additional_advices"><strong
|
||
|
style="font-size: 11px">Additional Precautions</strong></label>
|
||
|
<div class="input-group"><?php echo nl2br($row['remarks'])?></div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12 table-responsive">
|
||
|
<label class="control-label" for="followup_remarks"><strong
|
||
|
style="font-size: 11px">Follow-Up Remarks(If Any)</strong></label>
|
||
|
<div class="input-group"><?php echo $row['followup_remarks']?></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12 table-responsive">
|
||
|
<label class="control-label" for="test_result"><strong
|
||
|
style="font-size: 11px">Test Result</strong></label>
|
||
|
<div class="input-group"><?php echo $row['test_result']?></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
|
||
|
<form id="pdfform" target="_blank">
|
||
|
<input type="hidden" id="appointment_id_pdf"
|
||
|
value="<?php echo $row['appointment_id']?>" name="appointment_id_pdf">
|
||
|
</form>
|
||
|
<script>
|
||
|
|
||
|
function exporttopdf(){
|
||
|
|
||
|
document.forms['pdfform'].action="visitors_opd_form_pdf.php";
|
||
|
document.forms['pdfform'].method="post";
|
||
|
document.forms['pdfform'].submit();
|
||
|
}
|
||
|
|
||
|
|
||
|
</script>
|