180 lines
5.0 KiB
PHP
Executable File
180 lines
5.0 KiB
PHP
Executable File
<?php
|
|
//if(isset($_GET['scheduleId'])) { $scheduleId = $_GET['scheduleId']; }
|
|
if(isset($_GET['id'])) { $patient_id=$_GET['id']; }
|
|
|
|
if($md_order->orderData!=""){
|
|
$md_order_data_object=json_decode($md_order->orderData);
|
|
}
|
|
$medication_count=count($md_order->md_order_medication);
|
|
// echo '<pre>'; print_r($md_order_data_object); echo '</pre>';die;
|
|
$lab_order_count=count($md_order->md_order_lab_order);
|
|
|
|
if($patient->icd_info!=""){
|
|
$icd_info_object=json_decode($patient->icd_info);
|
|
}
|
|
$icd_info_count=count($icd_info_object);
|
|
|
|
$subData['medication_count'] = $medication_count;
|
|
$subData['lab_order_count'] = $lab_order_count;
|
|
$subData['icd_info_count'] = $icd_info_count;
|
|
$subData['md_order_data_object'] = $md_order_data_object;
|
|
$subData['labOption'] = $labOption;
|
|
$subData['medicationOption'] = $medicationOption;
|
|
$subData['view_for'] = 'Physician';
|
|
|
|
|
|
//echo '<pre>'; print_r($md_order); echo '</pre>';die;
|
|
//if(isset($type)) { $type=$_GET['type']; }
|
|
// echo 'PID:'.$patient_id;
|
|
// echo 'SID:'.$scheduleId;
|
|
// echo 'TYPE:'.$type;
|
|
// die;
|
|
// $output=getForm('test');
|
|
// print_r($templateArr);
|
|
// die;
|
|
?>
|
|
|
|
<!--main content start-->
|
|
<style type="text/css">
|
|
.required:after {
|
|
content:"*";
|
|
color:red;
|
|
}
|
|
.card-header.collapse-card-header {
|
|
border: 1px solid #1e9ff2;
|
|
border-radius: 0px !important;
|
|
padding: 5px;
|
|
position: relative;
|
|
border-bottom: none;
|
|
}
|
|
#headingTwentyFive {
|
|
border-bottom: 1px solid #1e9ff2;
|
|
}
|
|
.card.card-section {
|
|
margin: 0;
|
|
}
|
|
.card-header.collapse-card-header button.collapse-button-view h3{
|
|
font-size:18px;
|
|
}
|
|
.nav-tabs .nav-link.active {
|
|
color: #1e9dee;
|
|
}
|
|
.ord-heading{
|
|
color: #1e9dee;
|
|
}
|
|
</style>
|
|
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
|
|
<div class="app-content content">
|
|
<section class="content-wrapper">
|
|
<!-- page start-->
|
|
<section class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header card-header-title-part">
|
|
<h3 class="font-weight-bold text-uppercase"><?php echo $heading; ?></h3>
|
|
</div>
|
|
<div class="card-content">
|
|
<div class="card-body card-body_assessment">
|
|
<?php $this->view('OrderInsideView',$subData); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</section>
|
|
<!-- page end-->
|
|
</section>
|
|
</div>
|
|
|
|
|
|
<!-- Footer Script-->
|
|
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> -->
|
|
<?php $this->view('InsideFooterScript',$subData); ?>
|
|
|
|
<?php
|
|
if(isset($_SESSION['failed_msg'])){
|
|
?>
|
|
<script>
|
|
$(function(){
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'error',
|
|
title: '<?php echo $_SESSION['failed_msg']; ?>',
|
|
showConfirmButton: false,
|
|
timer: 2000
|
|
})
|
|
})
|
|
</script>
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
if(isset($_SESSION['success_msg'])){
|
|
?>
|
|
<script>
|
|
$(function(){
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'success',
|
|
title: '<?php echo $_SESSION['success_msg']; ?>',
|
|
showConfirmButton: false,
|
|
timer: 2000
|
|
})
|
|
})
|
|
</script>
|
|
<?php
|
|
}
|
|
?>
|
|
<script>
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
/* future date dob not accept */
|
|
$(document).ready(function () {
|
|
var todaysDate = new Date(); // Gets today's date
|
|
// Max date attribute is in "YYYY-MM-DD". Need to format today's date accordingly
|
|
var year = todaysDate.getFullYear(); // YYYY
|
|
var month = ("0" + (todaysDate.getMonth() + 1)).slice(-2); // MM
|
|
var day = ("0" + todaysDate.getDate()).slice(-2); // DD
|
|
var maxDate = (year +"-"+ month +"-"+ day); // Results in "YYYY-MM-DD" for today's date
|
|
// Now to set the max date value for the calendar to be today's date
|
|
$('.futDateNonAccept').attr('max',maxDate);
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
/*tool tip section*/
|
|
$(document).ready(function(){
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
});
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
function isNumberKey(evt){
|
|
var charCode = (evt.which) ? evt.which : evt.keyCode
|
|
if (charCode > 31 && (charCode < 48 || charCode > 57)){
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
function isCharKey(inputtxt){
|
|
var letters = /^[A-Za-z]+$/;
|
|
if(inputtxt.value.match(letters))
|
|
{
|
|
return true;
|
|
}
|
|
else
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|
|
<!--main content end-->
|
|
<!--footer start
|