Server IP : 162.240.98.243 / Your IP : 3.144.38.92 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/FO/Patient/ |
Upload File : |
<?php session_start(); require_once("../../dbconnection.php"); require_once('../../../DBManager.php'); require_once('../../../LoginManager.php'); if(!isset($_SESSION['uname'])) { echo "<script>alert('Session Expired..');</script><script>window.location='../index.php';</script>"; } $title='Discharge Summery'; $narayan=LoginManager::currentUser(); $harilal=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM site_users WHERE userno='$harilal'"; $qsql = mysqli_query($con,$sql); $rs = mysqli_fetch_array($qsql); $sql ="SELECT * FROM hco WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); $rs1 = mysqli_fetch_array($qsql); $usertype=$rs1['adminid']; $hco ="SELECT * FROM hco WHERE adminid='$rs[entered_by]'"; $Qhco = mysqli_query($con,$hco); $Rowhco = mysqli_fetch_array($Qhco); $usertype=$Rowhco['adminid']; $sql ="SELECT * FROM admin WHERE id='$Rowhco[adminid]'"; $qsql = mysqli_query($con,$sql); $ra = mysqli_fetch_array($qsql); $patient ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qpatient = mysqli_query($con,$patient); $rpatient = mysqli_fetch_array($qpatient); $sql1 ="SELECT * FROM patient WHERE patientid='$rpatient[patientid]'"; $qsql1 = mysqli_query($con,$sql1); $rspi1 = mysqli_fetch_array($qsql1); $sqlpatient1 = "SELECT * FROM site_users WHERE userno='$rsp[entered_by]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); $rsn = mysqli_fetch_array($qsqlpatient1); $pricedue=$rsp['pricetotal']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta charset="utf-8" /> <title><?php echo $title; ?></title> <meta name="description" content="Static & Dynamic Tables" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <!-- bootstrap & fontawesome --> <link rel="stylesheet" href="../assets/css/bootstrap.min.css" /> <link rel="stylesheet" href="../assets/font-awesome/4.5.0/css/font-awesome.min.css" /> <!-- page specific plugin styles --> <!-- text fonts --> <link rel="stylesheet" href="../assets/css/fonts.googleapis.com.css" /> <!-- ace styles --> <link rel="stylesheet" href="../assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" /> <!--[if lte IE 9]> <link rel="stylesheet" href="../assets/css/ace-part2.min.css" class="ace-main-stylesheet" /> <![endif]--> <link rel="stylesheet" href="../assets/css/ace-skins.min.css" /> <link rel="stylesheet" href="../assets/css/ace-rtl.min.css" /> <!--[if lte IE 9]> <link rel="stylesheet" href="../assets/css/ace-ie.min.css" /> <![endif]--> <!-- inline styles related to this page --> <!-- ace settings handler --> <script src="../assets/js/ace-extra.min.js"></script> <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries --> <!--[if lte IE 8]> <script src="../assets/js/html5shiv.min.js"></script> <script src="../assets/js/respond.min.js"></script> <![endif]--> </head> <body class="no-skin"> <?php include('../includes/header.php'); ?> <div class="main-container ace-save-state" id="main-container"> <script type="text/javascript"> try{ace.settings.loadState('main-container')}catch(e){} </script> <div id="sidebar" class="sidebar responsive ace-save-state"> <script type="text/javascript"> try{ace.settings.loadState('sidebar')}catch(e){} </script> <div class="sidebar-shortcuts" id="sidebar-shortcuts"> <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large"> <button class="btn btn-success"> <i class="ace-icon fa fa-signal"></i> </button> <button class="btn btn-info"> <i class="ace-icon fa fa-pencil"></i> </button> <button class="btn btn-warning"> <i class="ace-icon fa fa-users"></i> </button> <button class="btn btn-danger"> <i class="ace-icon fa fa-cogs"></i> </button> </div> <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini"> <span class="btn btn-success"></span> <span class="btn btn-info"></span> <span class="btn btn-warning"></span> <span class="btn btn-danger"></span> </div> </div><!-- /.sidebar-shortcuts --> <?php include('sidebar.php'); ?> <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse"> <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i> </div> </div> <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> <a href="#"><?php echo $title; ?></a> </li> </ul><!-- /.breadcrumb --> <div class="nav-search" id="nav-search"> <form class="form-search"> <span class="input-icon"> <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" /> <i class="ace-icon fa fa-search nav-search-icon"></i> </span> </form> </div><!-- /.nav-search --> </div> <div class="page-content"> <!-- /.ace-settings-container --> <div class="row"> <div class="col-xs-12"> <div class="row"> <div class="col-xs-12"> <div class="clearfix"> <input type="button" value="Print" onclick="printDiv()" class="btn btn-sm btn-success" style='float:right;'> </div> <div><div> <div id="GFG"> <div class="container"> <div class="row"> <div class="col-sm-12"> <table class="table" style="width:100%;"> <tr> <td> <img style="float:left;width:auto;" src="../../uploads/<?php echo $Rowhco['Logo'] ?>" class="img-responsive img-fluid"/> </td> <td> <span style="font-size:18px; float:right;"> <h4><b><?php echo $ra['hsname'] ?></b></h4> <?php echo $Rowhco['Street'] ?> | <?php echo $Rowhco['Locality'] ?></br> <?php echo $ra['EmailID'] ?> | <?php echo $ra['numbers'] ?></p> </span></td> </tr> </table> </div> </div> </div> <hr> <?php $sqlpatient2 = "SELECT * FROM site_users WHERE userno='$rpatient[Admitted_Under]'"; $qsqlpatient2 = mysqli_query($con,$sqlpatient2); if($rsn2 = mysqli_fetch_array($qsqlpatient2)) { echo" <div class='checkbox'><span style='float: left;'><b>Admission On :</b> $rpatient[created_at]<br> <b>Consultant :</b>$rsn2[name]($rpatient[casetype]) </span> <span style='float: right;'><B>File No.</B> :$rpatient[prescriptionid] <br>"; $sqlpatient = "SELECT * FROM save_activity WHERE prescriptionid='$_GET[prescriptionid]' AND discription='Intial Assessment<br>Vitals<br>Doc.no-'"; $qsqlpatient = mysqli_query($con,$sqlpatient); if($rsp = mysqli_fetch_array($qsqlpatient)) { if($rsp[discription]== 'Intial Assessment<br>Vitals<br>Doc.no-'){ echo"<b>Doc.no </b>: $_GET[srno]"; } else{ echo ""; } } echo "</span></div> <br><br> <div class='checkbox'><span style='float: left;'><b>UHID :</b> $rspi1[patientid]</span><span style='float: right;'><b>Name</b> :$rspi1[patientname]</span></div> <br> <div class='checkbox'><span style='float: left;'><b>Age:</b> $rspi1[dob]</span><span style='float: right;'><b>SEX :</b>$rspi1[gendor]</span></div> <div class='card-body'> "; } ?> <br> <div class="panel panel-primary"> <div class="panel-body"> <h4 class="text-on-pannel text-primary"><strong class="text-uppercase"> <?php echo $title; ?> </strong></h4> <br> <table class='table table-bordered table-hover' style='width:100%;' border='1'> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td width='50%'> Type of Admission:: </td> <td width='50%'>$rs[Type_of_Admission]</td> </tr> <tr> <td width='50%'> Reason for Admission : </td> <td width='50%'>$rs[Reason_for_Admission]</td> </tr> "; } ?> </table> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[MLC]) { ?> <div id="mmenu"> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <h2 align='center'>MLC Checklist</h2> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <tr> <td width='50%'> MLC No: </td> <td width='50%'>$rs[MLC_No]</td> </tr> <tr> <td width='50%'> MLC Slip : </td> <td width='50%'> <a href='http://easenup.healthcare/hco/uploads/$rs[myfile]'><i class='fa fa-file-pdf-o' aria-hidden='true' style='font-size:34px'></i> </a></td> </tr> </table> "; } ?> <?php } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[Trauma]) { ?> <div id="mmenu"> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <h2 align='center'>Trauma Care Checklist</h2> <h5>Immediately after primary & secondary surveys</h5> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <tr> <td width='50%'> Is Further Airway Intervention Needed? : </td> <td width='50%'>$rs[further] </td> </tr> <tr> <td width='50%'>Is There A Tension Pneumo-Haemothorax ? : </td> <td width='50%'>$rs[Pneumo_Haemothorax] </td> </tr> <tr> <td width='50%'>IS The Pulse and Fluids Started ? : </td> <td width='50%'>$rs[Fluids_Started] </td> </tr> <tr> <td width='50%'>Large-bore IV placed and fluids started : </td> <td width='50%'>$rs[iv_fluids_started] </td> </tr> <tr> <td width='50%'>Full Survey For (and control of)External bleeding, Including: </td> <td width='50%'>$rs[Full_Survey] | $rs[Perineum] | $rs[Back] </td> </tr> <tr> <td width='50%'>Assessed For Pelvic Fracture by : </td> <td width='50%'>$rs[Pelvic_Fracture] </td> </tr> <tr> <td width='50%'>Assessed For Internal Bleeding By: </td> <td width='50%'>$rs[Internal_Bleeding] </td> </tr> <tr> <td width='50%'>Is Spinal Immobilization Needed? : </td> <td width='50%'>$rs[Spinal_Immobilization] </td> </tr> <tr> <td width='50%'>Neurovascular Status of all 4 limbs Checked? : </td> <td width='50%'>$rs[Neurovascular_Status] </td> </tr> <tr> <td width='50%'>IS the patient Hypothermic? :</td> <td width='50%'>$rs[Hypothermic] </td> </tr> <tr> <td width='50%'>Does the Patient Need(if no contraindication) :</td> <td width='50%'>$rs[contraindication]| $rs[Nasogastric_Tube]| $rs[Chest_Drain]| $rs[None_Indicated]| </td> </tr> <tr> <td width='50%'>Has the Patient been Given :</td> <td width='50%'>$rs[leaves_patient]| $rs[Analgesics]| $rs[Antibiotics], $rs[None_Indicated]| </td> </tr> <tr> <td width='50%'>Have All tests and imaging been Reviewed :</td> <td width='50%'>$rs[tests_imaging] </td> </tr> <tr> <td width='50%'>Which serial Examinations Are Needed:</td> <td width='50%'>$rs[Examinations] </td> </tr> <tr> <td width='50%'>Plan of care discussed with :</td> <td width='50%'>$rs[care_discussed]| $rs[Receiving_Unit]| $rs[Primary_team]| $rs[Other_Specialists] </td> </tr> <tr> <td width='50%'>Relevant Trauma Chart or Form Comleted? :</td> <td width='50%'>$rs[Trauma_Chart] </td> </tr> <tr> <td width='50%'>Trauma Slip :</td> <td width='50%'>$rs[Trauma_Slip] </td> </tr> </table> </fieldset> </div> "; echo "</td></tr>"; } ?> <?php } } ?> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <?php $sqlpatient1= "SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); if($rr1=mysqli_fetch_array($qsqlpatient1)) { $sql ="SELECT * FROM Vulnerability WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo" <tr> <td width='50%'>Level of Consciousness :</td> "; $a=$rs[Eye_Opening_Response]; $b=$rs[Best_Verbal_Response]; $c=$a+$b; $d=$rs[Best_Motor_Response]; $e=$c+$d; if ($rs[Level_Consciousness]=='Un-conscious') { echo"<td width='50%'><b>$rs[Level_Consciousness]</b> <br><b>GCS:</b> <span>$e/15 </span></td>"; } elseif ($rs[Level_Consciousness]=='Semi Conscious') { echo"<td width='50%'><b>$rs[Level_Consciousness]</b> <br><b>GCS :</b> <span>$e/15 </span></td>"; } else { echo"<td width='50%'>$rs[Level_Consciousness] </td>"; } echo" <tr> <td width='50%'>Vulnerability Assessment :</td> <td width='50%'>$rr1[triage] </td> </tr> <tr> <td width='50%'>Pain Assessment :</td> <td width='50%'>$rs[Pain_Assessment] </td> </tr> <tr> <td width='50%'>Pain Location :</td> <td width='50%'>$rs[Pain_Location] "; if($rs[Pain_Location1]!=='') { echo", $rs[Pain_Location1]"; } if($rs[Pain_Location2]!=='') { echo", $rs[Pain_Location2]"; } if($rs[Pain_Location3]!=='') { echo", $rs[Pain_Location3]"; } if($rs[Pain_Location4]!=='') { echo", $rs[Pain_Location4]"; } if($rs[Pain_Location5]!=='') { echo", $rs[Pain_Location5]"; } echo"</td> </tr> "; } } ?> <tr> </table> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { if(on==$rt[covid]) { ?> <div id='mmenu'> <h4 align='center'><B>Chief Complain </B></h4> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Fever']; if($usertype == 'on'){ echo " <tr><td width='50%'> Fever: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['smell']; if($usertype == 'on'){ echo " <tr><td width='50%'> Loss of Smell: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Diarrhoea']; if($usertype == 'on'){ echo " <tr><td width='50%'> Diarrhoea: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Deformity']; if($usertype == 'on'){ echo " <tr><td width='50%'> Facial Deformity: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Cough']; if($usertype == 'on'){ echo " <tr><td width='50%'> Cough: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Taste']; if($usertype == 'on'){ echo " <tr><td width='50%'> Loss of Taste: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Weakness']; if($usertype == 'on'){ echo " <tr><td width='50%'> Weakness: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Breathlessness']; if($usertype == 'on'){ echo " <tr><td width='50%'> Breathlessness: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Appetite']; if($usertype == 'on'){ echo " <tr><td width='50%'> Loss of Appetite: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Limbs']; if($usertype == 'on'){ echo " <tr><td width='50%'> Power Loss in Limbs: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Throat']; if($usertype == 'on'){ echo " <tr><td width='50%'> Sore Throat : </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Vomitting']; if($usertype == 'on'){ echo " <tr><td width='50%'> Vomitting : </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Slurred_Voice']; if($usertype == 'on'){ echo " <tr><td width='50%'> Slurred Voice: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['RED_EYE']; if($usertype == 'on'){ echo " <tr><td width='33%'> RED EYE : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[RED_EYE_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Swollen_Eye']; if($usertype == 'on'){ echo " <tr><td width='33%'> Swollen Eye : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Swollen_Eye_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Conjunctiva']; if($usertype == 'on'){ echo " <tr><td width='33%'> Conjunctiva : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Conjunctiva_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Itchiness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Itchiness : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Itchiness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Dislocated']; if($usertype == 'on'){ echo " <tr><td width='33%'> Dislocated : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Dislocated_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Blur_Vision']; if($usertype == 'on'){ echo " <tr><td width='33%'> Blur Vision : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Blur_Vision_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Partial_Blindness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Partial Blindness : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Partial_Blindness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Blindness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Blindness : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Blindness_note]</td></tr>"; } else{ echo ""; } } ?> </table> <?php } } ?> <?php $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { if($rs[casetype]==Eye_Care) { ?> <table style='width:100%;' border='1' class="table table-bordered table-hover"> <?php $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); $rs = mysqli_fetch_array($qsql); ?> <tr><td width="25%"><b>Admission diagnosis</b></td> <td><?php echo $rs[Admission_diagnosis].' <b>'. $rs[other_Admission_diagnosis] ?> </b></td></tr> <tr><td width="25%"><b>Note</b></td> <td><?php echo $rs[note] ?></td> </tr> <tr><td width="25%"><b>Eye</b></td> <td><?php echo $rs[eyetype] ?></td> </tr> <?php ?> <?php }} ?> </table> <h4 align="center"><b>Treatment Timeline</b></h4> <table style='width:100%;' border='1' class="table table-bordered table-hover"> <tr> <th>Date</th> <th>Diagnosis / Prognosis</th> <th>Proposed Treatment</th> </tr> <?php $sql ="SELECT * FROM diagnosis_timiline WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs4 = mysqli_fetch_array($qsql)) { echo" <td>$rs4[created_at]</td> <td> $rs4[diagnosis]</td> <td> "; $sqlpatient1 = "SELECT * FROM list_tretment Where trid='$rs4[Surgery]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo" $rsn[tratment]"; } echo"</td> </tr> "; } ?> </table> </table><h4 align="center"><B>Vitals</B></h4> <table style='width:100%;' border='1' class="table table-bordered table-hover"> <thead> <tr> <th>Date & Time</th> <th>SPo2 </th> <th>RBS </th> <th>Temp</th> <th>Pulse</th> <th>BP</th> </tr> </thead> <tr><?php $sql ="SELECT * FROM vitals_final WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[created_at]</td> <td> $rs[Spo2]</td> <td> $rs[RBS]</td> <td> $rs[Temp]</td> <td> $rs[Pulse]</td> <td> $rs[BP]/$rs[BP2]</td> "; } ?> </tr> </thead> </tbody> </table> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <?php $sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " "; $a=$rs[Weight]; $b=$rs[Height]*$rs[Height]; $c=$a/$b*10000; echo" <tr> <td Width='50%'>BMI Result</td><td Width='50%'> "; echo round($c, 2); echo"</td></tr> "; } ?> <br> <br> </table> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo" <h4 align='center'><B>Chief Complain</B></h4>"; } ?> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Fever']; if($usertype == 'on'){ echo " <tr><td width='33%'> Fever: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Fever_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['smell']; if($usertype == 'on'){ echo " <tr><td width='33%'> Loss of Smell: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[smell_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Diarrhoea']; if($usertype == 'on'){ echo " <tr><td width='33%'> Diarrhoea: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Diarrhoea_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Deformity']; if($usertype == 'on'){ echo " <tr><td width='33%'> Facial Deformity: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Deformity_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Cough']; if($usertype == 'on'){ echo " <tr><td width='33%'> Cough: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Cough_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Taste']; if($usertype == 'on'){ echo " <tr><td width='33%'> Loss of Taste: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Taste_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Weakness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Weakness: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Weakness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Breathlessness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Breathlessness: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Breathlessness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Appetite']; if($usertype == 'on'){ echo " <tr><td width='33%'> Shivering: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Appetite_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Limbs']; if($usertype == 'on'){ echo " <tr><td width='33%'> Power Loss in Limbs: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Limbs_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Throat']; if($usertype == 'on'){ echo " <tr><td width='33%'> Sore Throat : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Throat_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Vomitting']; if($usertype == 'on'){ echo " <tr><td width='33%'> Vomitting : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Vomitting_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Slurred_Voice']; if($usertype == 'on'){ echo " <tr><td width='33%'> Slurred Voice: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Slurred_Voice_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Nausea']; if($usertype == 'on'){ echo " <tr><td width='33%'> Nausea: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Nausea_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Loss_Appetite']; if($usertype == 'on'){ echo " <tr><td width='33%'> Loss of Appetite: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Loss_Appetite_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Delusion']; if($usertype == 'on'){ echo " <tr><td width='33%'> Delusion: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Delusion_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Fits_Anger']; if($usertype == 'on'){ echo " <tr><td width='33%'> Fits of Anger: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Fits_Anger_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Depression']; if($usertype == 'on'){ echo " <tr><td width='33%'> Depression: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Depression_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Memory_Loss']; if($usertype == 'on'){ echo " <tr><td width='33%'> Memory Loss: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Memory_Loss_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Bleeding_Disorder']; if($usertype == 'on'){ echo " <tr><td width='33%'> Bleeding Disorder: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Bleeding_Disorder_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Migraine']; if($usertype == 'on'){ echo " <tr><td width='33%'> Migraine : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Migraine_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Frequent_Urination']; if($usertype == 'on'){ echo " <tr><td width='33%'> Frequent Urination : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Frequent_Urination_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Swollen_Join']; if($usertype == 'on'){ echo " <tr><td width='33%'> Swollen Join : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Swollen_Join_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Weight_Gain']; if($usertype == 'on'){ echo " <tr><td width='33%'> Weight Gain : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Weight_Gain_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['weight_loss']; if($usertype == 'on'){ echo " <tr><td width='33%'> weight loss : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[weight_loss_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Body_pain']; if($usertype == 'on'){ echo " <tr><td width='33%'> Body pain : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Body_pain_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Physical_Injury']; if($usertype == 'on'){ echo " <tr><td width='33%'> Physical Injury : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Physical_Injury_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tr><td width='33%'> Other Symptoms : </td> <td width='33%'>$rs[Other_Symptoms]</td></tr>"; } ?> </table> <table style='width:100%;' border='1' class="table table-bordered table-hover"> <?php $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' and casetype!='Eye_Care'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { ?> <?php $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo" <table style='width:100%;' border='1' class='table table-bordered table-hover'> <tr><td width='50%'>Significant findings : </td> <td width='50%'>$rs[significate]</td></tr> <tr><td>Nutritional diagnosis</td><td>$rs[Nutritional_Diagnosis]</td></tr> <tr><td>Admission diagnosis</td><td>$rs[Admission_diagnosis]</td></tr> <tr><td>Proposed Treatment/ Surgery:</td><td> "; if (is_numeric($rs[tratment])) { $sql1 ="SELECT * FROM list_tretment WHERE trid='$rs[tratment]'"; $qsql1 = mysqli_query($con,$sql1); while($rs1 = mysqli_fetch_array($qsql1)) echo"$rs1[tratment]"; } echo" </td></tr> "; } ?> <?php } ?> <?php $sql ="SELECT * FROM potential WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $DisplayForm=True; $sql1 ="SELECT * FROM potential WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND operative_date='$rs[operative_date]'"; $qsql1 = mysqli_query($con,$sql1); while($rh1 = mysqli_fetch_array($qsql1)) { $DisplayForm=False; echo ""; } if($DisplayForm) { echo ""; } else{ ?> <?php } } ?> <?php $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { if(Pregnancy==$rs[casetype]) { ?> <?php $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo" <table style='width:100%;' border='1' class='table table-bordered table-hover'> "; if($rs[procedure_date]!=''){ echo" <tr><td>Operative procedure date</td><td>$rs[procedure_date]</td></tr>"; } } ?> </table> <?php } } ?> <!-- <h4 align="center"><b>Investigation</b></h4>--> <table style='width:100%;' border='1' id ="demo" class="table table-bordered table-hover"> <thead> <tr> <th><strong>Date Time</strong></th> <th><strong>Investigation</strong></th> <th><strong>Result</strong></th> <th><strong>Evidence (Upload)</strong></th> </tr> </thead> <?php $sql ="SELECT * FROM investigation WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[created_at]</td> <td> "; $sqlpatient1 = "SELECT * FROM labdepartment WHERE labdepartmentid='$rs[Category]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo"$rsn[lab_department_name]"; } $sqlpatient1 = "SELECT * FROM radiobodypart WHERE radiobodypartid='$rs[Sub_Category]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo" -$rsn[bodypart]"; } $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[Investigation]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo"-<b>$rsn[Investigation]</b>"; } $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[ivid]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo" $rsn[Investigation]"; } echo"</b></td> <td>$rs[Result]</td> <td> $rs[Evidence]</td> </tr> "; } ?> </tbody> </table> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <?php $sql7 ="SELECT * FROM discharge WHERE patientid='$_GET[patientid]' and prescriptionid ='$_GET[prescriptionid]'"; $qsql7 = mysqli_query($con,$sql7); $dataDischargeSummary=array(); if($rs7 = mysqli_fetch_array($qsql7)) { $dataDischargeSummary = $rs7; } echo""; $doc=($dataDischargeSummary[COdischarge])?$dataDischargeSummary[COdischarge]:'-'; $admissiondate=($dataDischargeSummary[admissiondate])?$dataDischargeSummary[admissiondate]:'-'; $Advice_Discharge=($dataDischargeSummary[Advice_Discharge])?$dataDischargeSummary[Advice_Discharge]:'-'; $Detail_Note=($dataDischargeSummary[Detail_Note])?$dataDischargeSummary[Detail_Note]:'-'; echo"<tr><td><b>Condition at Discharge: </b></td><td>$doc</td></tr>"; echo"<tr><td><b>Date of procedure: </b></td><td>$admissiondate</td></tr>"; echo"<tr><td><b>Clinical Notes: </b></td><td>$Advice_Discharge</td></tr>"; ?> </table> <h4 style="text-align:center;"><b> Medication Timeline</b></h4> <table style='width:100%;' border='1' class="table table-bordered table-hover"> <thead> <tr> <th><strong>Drug & Dose </strong></th> <th><strong> Route</strong></th> <th><strong>Note</strong></th> <th><strong>Frequency </strong></th> <th><strong>Duration</strong></th> </tr> </thead> <?php $sql ="SELECT * FROM medicinede WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo" <tr>"; echo "<td> "; if (is_numeric($rs[DRUGS])) { $sql1 ="SELECT * FROM medicine_stok WHERE medicine_id='$rs[DRUGS]'"; $qsql1 = mysqli_query($con,$sql1); while($rs1 = mysqli_fetch_array($qsql1)) echo"$rs1[DRUGS_name]-$rs[Dose] <br><span STYLE='font-size:12px'>$rs1[Contain]</span>"; } else { echo"$rs[DRUGS]-$rs[Dose] "; } echo" <br><td>$rs[Route]</td> "; echo"<td>$rs[potential]</td>"; echo" <td>"; switch ($rs[Frequency]) { case '01': echo "OD (Once Daily)"; break; case '2': echo "BID/b.i.d. (twice a day)"; break; case '3': echo "TID/t.id. (three times a day)"; break; case '04': echo "QID/q.i.d. (four times a day)"; break; case '1': echo "QHS (every bedtime)"; break; case '6': echo "Q4h (every 4 hours)"; break; case '4': echo "Q4-6h (every 4 to 6 hours)"; break; case '0.143': echo "QWK (every week)"; break; default: echo ""; } echo"</td>"; echo" <td>$rs[duration] "; echo "Days"; echo" </td> </tr> "; } ?> </thead> </tbody> <tfoot> </tfoot> </table> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <?php $sql ="SELECT * FROM potential WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo" <tr><td> Plan Of Care</td><td>$rs[Plan_Of_Care]</td></tr> <tr><td>Follow Up Care</td><td>$rs[Follow_Up_Care]</td></tr> "; if($rs[procedure_date]!=''){ echo" <tr><td>Operative procedure date</td><td>$rs[procedure_date]</td></tr>"; } } ?> <?php $sql ="SELECT * FROM transferreferal WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo" <tr><td>Follow Up date</td><td>$rs[followup_date]</td></tr> "; } ?> </table> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <?php $sql1 ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql1 = mysqli_query($con,$sql1); while($rs1 = mysqli_fetch_array($qsql1)) { $sql ="SELECT * FROM potential WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sqldoctor= "SELECT * FROM site_users WHERE userno='$rs1[Admitted_Under]'"; $qsqldoctor = mysqli_query($con,$sqldoctor); while($rsdoctor1 = mysqli_fetch_array($qsqldoctor)) { $sqldoctor1= "SELECT * FROM dr WHERE drid='$rs1[Admitted_Under]'"; $qsqldoctor1 = mysqli_query($con,$sqldoctor1); while($rsdoctor11 = mysqli_fetch_array($qsqldoctor1)) { echo"<tr> <th></th> <th></th></tr> <tr> <td><b>$rsdoctor1[name]</b> <br>($rsdoctor11[Qualification]) <br> <div class='logo'> <img data-logo='' src='uploads/$rsdoctor11[sign]' style='width:250px;height:100px;' /></td> <td>$rs[created_at] <br><br><br><br><br><br><br></td></tr> "; } } } } ?> </table> <h4 style="text-align:center;"><b>Follow-up Instruction</b></h4> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <?php $sql ="SELECT * FROM followdis WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td width='50%'> <b> Food Intake</b>: </td> <td width='50%'>$rs[Food_Intake]</td> </tr> <tr> <td width='50%'> <b> Kindly Avoid </b>: </td> <td width='50%'>$rs[Kindly_Avoid]</td> </tr> <tr> <td width='50%'> <b> Kindly Follow </b>: </td> <td width='50%'>$rs[Kindly_Follow]</td> </tr> <tr> <td width='50%'> <b> Follow up Visit </b>: </td> <td width='50%'>$rs[Follow_Visit]</td> </tr> "; } ?> </table> <p style="text-align:center;">Incase of emergency, Kindly contact <?php echo "<b>$rs1[OrganizationPhonenumber]</b> "; ?> </p> <table style='width:100%;' border='1' class='table table-bordered table-hover'> <?php $sql1 ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql1 = mysqli_query($con,$sql1); $rs1 = mysqli_fetch_array($qsql1); $sqldoctor= "SELECT * FROM site_users WHERE userno='$rs1[Admitted_Under]'"; $qsqldoctor = mysqli_query($con,$sqldoctor); $rsdoctor1 = mysqli_fetch_array($qsqldoctor); $sqldoctor1= "SELECT * FROM dr WHERE drid='$rs1[Admitted_Under]'"; $qsqldoctor1 = mysqli_query($con,$sqldoctor1); $rsdoctor11 = mysqli_fetch_array($qsqldoctor1); $sqldischarge= "SELECT * FROM Gatepass WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsqldischarge = mysqli_query($con,$sqldischarge); $rsdischarge = mysqli_fetch_array($qsqldischarge); echo"<tr> <th></th> <th></th></tr> <tr> <td><b>$rsdoctor1[name]</b> <br>($rsdoctor11[Qualification]) <br> <div class='logo'> <img data-logo='' src='../../uploads/$rsdoctor11[sign]' style='width:250px;height:100px;' /></td> <td>$rsdischarge[created_at] <br><br><br><br><br><br><br></td></tr> "; ?> </table> </div></div> </div> </div></div> </div> </div> </div> <!-- PAGE CONTENT ENDS --> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.page-content --> </div> </div><!-- /.main-content --> <?php include('../includes/footer.php'); ?> <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"> <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i> </a> </div><!-- /.main-container --> <!-- basic scripts --> <!--[if !IE]> --> <script src="../assets/js/jquery-2.1.4.min.js"></script> <!-- <![endif]--> <!--[if IE]> <script src="../assets/js/jquery-1.11.3.min.js"></script> <![endif]--> <script type="text/javascript"> if('ontouchstart' in document.documentElement) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>"); </script> <script src="../assets/js/bootstrap.min.js"></script> <!-- page specific plugin scripts --> <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> <!-- ace scripts --> <script src="../assets/js/ace-elements.min.js"></script> <script src="../assets/js/ace.min.js"></script> <!-- inline scripts related to this page --> <script> function printDiv(GFG) { var divToPrint=document.getElementById('GFG'); var newWin=window.open('','Print-Window'); newWin.document.open(); newWin.document.write('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>'); newWin.document.close(); setTimeout(function(){newWin.close();},10); // var divContents = document.getElementById("GFG").innerHTML; // var a = window.open('', '', 'height=500, width=500'); // a.document.write('<html><body >'); // //a.document.write('<body ><div class="container"><div class="row"><div class="col-sm-12"><table class="table" style="width:100%;"><tr><td><?php echo $ra['hsname'] ?></div><div><span style="font-size:18px"><?php echo $Rowhco['Street'] ?> | <?php echo $Rowhco['Locality'] ?></br><?php echo $ra['EmailID'] ?> | <?php echo $ra['numbers'] ?></p></span></td><td><img style="float:right;width: 15%;" src="../../uploads/<?php echo $Rowhco['Logo'] ?>" class="img-responsive img-fluid"/></td></tr></table></div></div></div><hr>'); // a.document.write(divContents); // a.document.write('</body></html>'); // a.document.close(); // a.print(); } </script> <style> .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; } </style> <style> .text-on-pannel { background: #fff none repeat scroll 0 0; height: auto; margin-left: 20px; padding: 3px 5px; position: absolute; margin-top: -47px; border: 1px solid #337ab7; border-radius: 8px; } .panel { /* for text on pannel */ margin-top: 27px !important; } .panel-body { padding-top: 30px !important; } .panel-primary { border-color: #116bb9; } .donate-now { list-style-type:none; margin:25px 0 0 0; padding:0; } .donate-now li { float:left; margin:0 5px 0 0; } .donate-now label { padding:5px; border:1px solid #CCC; cursor:pointer; } .donate-now label:hover { background:#DDD; } </style> </body> </html>