Server IP : 162.240.98.243 / Your IP : 3.138.35.255 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/ |
Upload File : |
<?php session_start(); require_once('../DBManager.php'); require_once('../LoginManager.php'); include("header.php"); include("dbconnection.php"); include 'dashboarddocument.php'; ?> <style> #topright { position: absolute; right: 0; top: 0; margin-top: 73px; margin-right: 30px; display: block; height: 70px; width: 70px; background: url(TRbanner.gif) no-repeat; text-indent: -999em; text-decoration: none; } #toprightj { position: absolute; right: 0; top: 0; margin-top: 73px; margin-right: 120px; display: block; height: 70px; width: 70px; background: url(TRbanner.gif) no-repeat; text-indent: -999em; text-decoration: none; } #toprightb { position: absolute; right: 0; top: 0; margin-top: 73px; margin-right: 200px; display: block; height: 70px; width: 70px; background: url(TRbanner.gif) no-repeat; text-indent: -999em; text-decoration: none; } .center { border: 1px solid grey; text-align:; } .center2 { border: 5px solid grey; text-align:; } </style> <form> <div class="content-wrapper"> <div class='center'> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[iso]) { ?> <p STYLE='font-size:18px'> AN ISO 9001:2015 Certified co.</p> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[iso14]) { ?> <p STYLE='font-size:18px'> AN ISO 14001:2015 Certified co.</p> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[iso27]) { ?> <p STYLE='font-size:18px'> AN ISO 27001 Certified co.</p> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[NABH]) { ?> <img id='topright' align='top' src='uploads/nabh.png' width='70' height='70'> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[NABL]) { ?> <img id='toprightb' align='right' src='uploads/nabl.png' width='70' height='70'> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[JCI]) { ?> <img id='toprightj' align='right' src='uploads/JCI.png' width='70' height='70'> <?php } } } } ?> <br><br> <section id="memo"> <div class="logo"> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM hco WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM admin WHERE id='$rs[adminid]'"; $qsql = mysqli_query($con,$sql); if($ra = mysqli_fetch_array($qsql)) { echo" <img data-logo='' src='uploads/$rs[Logo]' /> </div> <div class='company-info'> <div>$ra[hsname]</div> <div> <span style='font-size:18px'>$rs[Street] | $rs[Locality]</br>$ra[EmailID] | $ra[numbers]</p></span> </div> "; } } } } ?> <br> </section> <br> <?php include("dbconnection.php"); $sql ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql1 ="SELECT * FROM patient WHERE patientid='$rs[patientid]'"; $qsql1 = mysqli_query($con,$sql1); if($rspi1 = mysqli_fetch_array($qsql1)) { $sqlpatient1 = "SELECT * FROM site_users WHERE userno='$rs[entered_by]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); if($rsn = mysqli_fetch_array($qsqlpatient1)) { $sqlpatient2 = "SELECT * FROM site_users WHERE userno='$rs[Admitted_Under]'"; $qsqlpatient2 = mysqli_query($con,$sqlpatient2); if($rsn2 = mysqli_fetch_array($qsqlpatient2)) { echo" <div class='checkbox'><span style='float: left; font-size:16px;'><b>Date/Time :</b> $rs[created_at]</span><span style='float: right; font-size:16px;'><B>OP.no</B> :$rs[prescriptionid]</span></div> <br> <div class='checkbox'><span style='float: left; font-size:16px;'><b>Department:</b> $rs[casetype]</span><span style='float: right; font-size:16px;'><b>Consultant :</b>$rsn2[name]</span></div> <br> <div class='checkbox'><span style='float: left; font-size:16px;'><b>UHID :</b> $rspi1[patientid]</span><span style='float: right; font-size:16px;'><b>Name</b> :$rspi1[patientname]</span></div> <br> <div class='checkbox'><span style='float: left; font-size:16px;'><b>Age:</b> $rspi1[dob]</span><span style='float: right; font-size:16px;'><b>SEX :</b>$rspi1[gendor]</span></div> <div class='card-body'> "; }}} } ?> <?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 " <table id='example2' class='table table-bordered table-hover'> <div class='card-header d-flex p-0'> <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 id='example2' 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 id='example2' 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 id='example2' 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 id='example2' 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 } } ?> </table><h4 align="center"><B>Vitals</B></h4> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <th>SPo2(%)</th> <th>RBS(mg/dl)</th> <th>Temp(C*)</th> <th>Pulse(Min)</th> <th>BP(mmHg)</th> </tr> </thead> <tr><?php $sql ="SELECT * FROM Medical_vitals WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[SPo2]</td> <td> $rs[RBS]</td> <td> $rs[Temp]</td> <td> $rs[Pulse]</td> <td> $rs[BP2]/$rs[BP]</td> "; } ?> </tr> </thead> </tbody> </table> <?php session_start(); require_once('dbconnection.php'); $sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <table id='example2' class='table table-bordered table-hover'> "; $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> <!--/*-------------significant-------------------*/--> <div class="card-body"> </br></br> <div class='center'> <table id='example2' 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); if($rs = mysqli_fetch_array($qsql)) { echo" <h3 align='center'>Chief Complain "; } ?> </h3> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); $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>"; } ?> <?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['Conjuctiva']; if($usertype == 'on'){ echo " <tr><td width='33%'> Conjuctiva : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Conjuctiva_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 session_start(); $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { ?> <?php session_start(); require_once('../LoginManager.php'); require_once('../DBManager.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((Eye_Care!==$rs[casetype]) || ('Eye_Care'==$rs[casetype])) { ?> <?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 id='example2' 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><tr><td>Provisional diagnosis</td><td>$rs[Admission_diagnosis]</td></tr>"; $sqlpatient1 = "SELECT * FROM list_tretment WHERE trid=$rs[tratment]"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo " <tr> <td>Proposed Surgery:</td> <td>$rsn[tratment]</td></tr>"; } } ?> <?php } } ?> </table> <?php } ?> <?php session_start(); require_once('../LoginManager.php'); require_once('../DBManager.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(Eye_Care==$rs[casetype]) { ?> </form> <?php } } ?> <br> <div id="modaltrauma" class="modal"> <div class="modal-content"> <div class="contact-form"> <a class="close">×</a> <?php $sql ="SELECT * FROM trauma_checklist WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <h3 align='center'>Trauma Care Checklist</h3> <BR><BR> <h5 align='center'>Immediately after primary & secondary surveys</h5> <table id='example2' 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> </table> </fieldset> "; echo "</td></tr>"; } ?> </table> </div></div></div> <div id="modalmlc" class="modal"> <div class="modal-content"> <div class="contact-form"> <a class="close">×</a> <h2 align='center'>MLC Checklist</h2> <?php $sql ="SELECT * FROM mlc WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <table id='example2' 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 target='_blank' href='http://easenup.in/hco/uploads/$rs[Upload_MLC_Slip]'>MLC Slip</a></td> </tr> </table> "; } ?> </div> </div> </div> <div id="modalOne" class="modal"> <div class="modal-content"> <div class="contact-form"> <a class="close">×</a> <h3 align='center'>Covid 19 Checklist</h3> <table id='example2' class='table table-bordered table-hover'> <?php $sql ="SELECT * FROM CovidChecklist WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { if($rs[symptoms_fever] == 'on'){ echo " <tr><td width='50%'>Do you have symptoms such as fever, cough, sneezing, sore throat, fatigue, sense of smell, changes in taste, and body aches?: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo "<tr><td width='50%'>Do you have symptoms such as fever, cough, sneezing, sore throat, fatigue, sense of smell, changes in taste, and body aches?: </td> <td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>"; } if($rs[difficulty_breathing] == 'on'){ echo " <tr><td width='50%'>Do you have difficulty of breathing?: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo "<tr><td width='50%'>Do you have difficulty of breathing?: </td> <td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>"; } if($rs[country_days] == 'on'){ echo " <tr><td width='50%'>Have you travelled outside the country in the last 30 days?: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo "<tr><td width='50%'>Have you travelled outside the country in the last 30 days?: </td> <td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>"; } if($rs[other_cities] == 'on'){ echo " <tr><td width='50%'>Have you traveled to other cities in India in 15 days?: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo "<tr><td width='50%'>Have you traveled to other cities in India in 15 days?: </td> <td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>"; } if($rs[two_weeks] == 'on'){ echo " <tr><td width='50%'>Were you a Covid-19 positive patient in the last two weeks? or suspect in a case of covid-19 ?: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo "<tr><td width='50%'>Were you a Covid-19 positive patient in the last two weeks? or suspect in a case of covid-19 ?: </td> <td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>"; } if($rs[health_facility] == 'on'){ echo " <tr><td width='50%'>Have you visited a health care facility in the past two weeks?: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo "<tr><td width='50%'>Have you visited a health care facility in the past two weeks?: </td> <td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>"; } } ?> </table> </div> </div> </div> </div> </div> <?php session_start(); include("dbconnection.php"); require_once('../DBManager.php'); require_once("../LoginManager.php"); require_once('../patientmanager.php'); if(isset($_POST[Obstetric])) { PatientManager::ObstetricHistory("$_GET[prescriptionid]","$_GET[patientid]","$_POST[hs_years]","$_POST[hs_of]","$_POST[mode]","$_POST[outcome]","$_POST[incident]","$_POST[Gender]","$_POST[wt]","$_POST[conducted]","$_POST[complication]","$_POST[entered_by]"); } ?> <?php include("dbconnection.php"); if(isset($_GET[delid])) { $sql ="DELETE FROM investigation WHERE id='$_GET[delid]'"; $qsql=mysqli_query($con,$sql); if(mysqli_affected_rows($con) == 1) { echo "<script>alert('Deleted successfully..');</script>"; } } ?> <title>Title of the document</title> <style> .modal { display: none; position: fixed; z-index: 8; left: 5%; right: 5%; top: 10%; width: 80%; height: 100%; overflow: auto; background-color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0.4); } .modal-content { margin: 50px auto; border: 1px solid #999; width: 60%; } h2,p { margin: 0 0 20px; font-weight: 400; } .form1 { padding: 25px; margin: 25px; box-shadow: 0 2px 5px #f5f5f5; background: #eee; } input, textarea, select { width: 80%; padding: 6px; margin-bottom: 20px; border: 1px solid #1c87c9; outline: none; } .contact-form button { width: 80%; padding: 10px; border: none; background: #1c87c9; font-size: 16px; font-weight: 400; color: #fff; } button:hover { background: #2371a0; } .close { color: #000000; float: right; font-size: 58px; font-weight: bold; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; } button.button { display: inline-block; border-bottom: #02274a 1px solid; font-size: 19px; cursor: pointer; } button.button:hover { border-bottom: #a99567 1px solid; color: #a99567; } </style> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script> $( function() { $.widget( "custom.combobox", { _create: function() { this.wrapper = $( "<span>" ) .addClass( "custom-combobox" ) .insertAfter( this.element ); this.element.hide(); this._createAutocomplete(); this._createShowAllButton(); }, _createAutocomplete: function() { var selected = this.element.children( ":selected" ), value = selected.val() ? selected.text() : ""; this.input = $( "<input>" ) .appendTo( this.wrapper ) .val( value ) .attr( "title", "" ) .addClass( "custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left" ) .autocomplete({ delay: 0, minLength: 0, source: $.proxy( this, "_source" ) }) .tooltip({ classes: { "ui-tooltip": "ui-state-highlight" } }); this._on( this.input, { autocompleteselect: function( event, ui ) { ui.item.option.selected = true; this._trigger( "select", event, { item: ui.item.option }); }, autocompletechange: "_removeIfInvalid" }); }, _createShowAllButton: function() { var input = this.input, wasOpen = false; $( "<a>" ) .attr( "tabIndex", -1 ) .attr( "title", "Show All Items" ) .tooltip() .appendTo( this.wrapper ) .button({ icons: { primary: "ui-icon-triangle-1-s" }, text: false }) .removeClass( "ui-corner-all" ) .addClass( "custom-combobox-toggle ui-corner-right" ) .on( "mousedown", function() { wasOpen = input.autocomplete( "widget" ).is( ":visible" ); }) .on( "click", function() { input.trigger( "focus" ); // Close if already visible if ( wasOpen ) { return; } // Pass empty string as value to search for, displaying all results input.autocomplete( "search", "" ); }); }, _source: function( request, response ) { var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" ); response( this.element.children( "option" ).map(function() { var text = $( this ).text(); if ( this.value && ( !request.term || matcher.test(text) ) ) return { label: text, value: text, option: this }; }) ); }, _removeIfInvalid: function( event, ui ) { // Selected an item, nothing to do if ( ui.item ) { return; } // Search for a match (case-insensitive) var value = this.input.val(), valueLowerCase = value.toLowerCase(), valid = false; this.element.children( "option" ).each(function() { if ( $( this ).text().toLowerCase() === valueLowerCase ) { this.selected = valid = true; return false; } }); // Found a match, nothing to do if ( valid ) { return; } // Remove invalid value this.input .val( "" ) .attr( "title", value + " didn't match any item" ) .tooltip( "open" ); this.element.val( "" ); this._delay(function() { this.input.tooltip( "close" ).attr( "title", "" ); }, 2500 ); this.input.autocomplete( "instance" ).term = ""; }, _destroy: function() { this.wrapper.remove(); this.element.show(); } }); $( "#combobox" ).combobox(); $( "#toggle" ).on( "click", function() { $( "#combobox" ).toggle(); }); } ); </script> <?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]) { ?> <h3 align='center'>Obstetric History</h3> <table id="example2" class="table table-bordered table-hover"> <tr> <td width='33%'>Gravida : <?php $sql="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]'"; $result=mysqli_query($con,$sql); $row=mysqli_fetch_array($result); echo "$row[0]"; mysqli_close($con); ?> </td> <td width='33%'>Para : <?php include("dbconnection.php"); $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND hs_of='Delivery'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> <td width='33%'>Abortion : <?php include("dbconnection.php"); $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND hs_of='Abortion'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); outcome ?> </td> </tr> <tr> <td width='33%'>Cesarean : <?php include("dbconnection.php"); $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND mode='LSCS'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> <td width='33%'>Child alive : <?php include("dbconnection.php"); $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND outcome='Alive'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> <td width='33%'>Death : <?php include("dbconnection.php"); $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND outcome='Death'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> </tr> <tr> </td> <td width='33%'>Miscarriage : <?php include("dbconnection.php"); $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND hs_of='Miscarriage'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> <td></td> <td></td> </tr> </table> <p align="right"> <button class="button" data-modal="modalmedi"> Add </button> </p> <table id="example2" class="table table-bordered table-hover"> <tr><th>Date</th><th>Towords</th><th>Action</th></tr><tr> <?php include("dbconnection.php"); $sql ="SELECT * FROM Obstetric_History WHERE patientid='$_GET[patientid]' ORDER BY id ASC"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { if($rs[hs_of]=='Delivery') { echo "<tr><td>$rs[hs_years]</td> <td><b>History Of : </b>$rs[hs_of] <br><b>Mode : </b>$rs[mode] <br><b>Outcome: </b>$rs[outcome] <br><b> Baby Gender: </b>$rs[Gender] <br><b>Baby Weight(in kg): </b>$rs[wt] <br><b>Complication: </b>$rs[complication] <br></td> <td><div class='btn-group'> <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'> Action <span class='caret'></span> </button> <ul class='dropdown-menu'> <li><a href='testopdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]&delid=$rs[id]'> <i class='glyphicon glyphicon-edit'></i> Remove</a></li></ul> </div> </td> </tr> "; } elseif($rs[hs_of]=='Abortion') { echo "<tr><td>$rs[hs_years]</td> <td><b>History Of : </b>$rs[hs_of] <br><b>Mode : </b>$rs[mode] <br><b>Outcome: </b>$rs[outcome] <br><b>Complication: </b>$rs[complication] <br></td> <td><div class='btn-group'> <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'> Action <span class='caret'></span> </button> <ul class='dropdown-menu'> <li><a href='testopdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]&delid=$rs[id]'> <i class='glyphicon glyphicon-edit'></i> Remove</a></li></ul> </div> </td> </tr>"; } elseif($rs[hs_of]=='Miscarriage') { echo "<tr><td>$rs[hs_years]</td> <td><b>History Of : </b>$rs[hs_of] <br><b>Incident: </b>$rs[incident]<br><b>Complication: </b>$rs[complication] <br></td> <td><div class='btn-group'> <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'> Action <span class='caret'></span> </button> <ul class='dropdown-menu'> <li><a href='testopdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]&delid=$rs[id]'> <i class='glyphicon glyphicon-edit'></i> Remove</a></li></ul> </div> </td> </tr> "; } } ?> </table> <?php } } ?> <!--/*--------------------end significant---------------------*/--> <?php session_start(); require_once('../LoginManager.php'); require_once('../DBManager.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(Eye_Care==$rs[casetype]) { ?> <table id="example2" class="table table-bordered table-hover"> <tr><th>Admission diagnosis</th> <th>Note</th> <th>Eye</th> </tr> <tr> <?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 " <tbody> <td> $rs[Admission_diagnosis] <b>$rs[other_Admission_diagnosis]</td> <td> $rs[note] </td> <td> $rs[eyetype] </td> "; } ?> </table> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Visual Acuity Test</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php include("dbconnection.php"); $sql ="SELECT * FROM visual WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td>Un-Aided</td> <td> $rs[Un_right]</td> <td> $rs[Un_left]</td> </tr> <td>Aided / Present Glass</td> <td> $rs[Aided_right]</td> <td> $rs[Aided_left]</td> </tr> "; } ?> </table> <br> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Glass Advices Distance</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php include("dbconnection.php"); $sql ="SELECT * FROM Glass_Advices WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination_type='Distance' "; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[SPH]</td> <td> $rs[SPH_right]</td> <td> $rs[SPH_left]</td> </tr> <tr> <td> $rs[CYL]</td> <td> $rs[CYL_right]</td> <td> $rs[CYL_left]</td> </tr> <tr> <td> $rs[AXIS]</td> <td> $rs[AXIS_right]</td> <td> $rs[AXIS_left]</td> </tr> <tr> <td> $rs[VISION]</td> <td> $rs[VISION_right]</td> <td> $rs[VISION_left]</td> </tr> "; } ?> </tbody> </table> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Glass Advices Near</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php include("dbconnection.php"); $sql ="SELECT * FROM Glass_Advices WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination_type='near' "; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[SPH]</td> <td> $rs[SPH_right]</td> <td> $rs[SPH_left]</td> </tr> <tr> <td> $rs[CYL]</td> <td> $rs[CYL_right]</td> <td> $rs[CYL_left]</td> </tr> <tr> <td> $rs[AXIS]</td> <td> $rs[AXIS_right]</td> <td> $rs[AXIS_left]</td> </tr> <tr> <td> $rs[VISION]</td> <td> $rs[VISION_right]</td> <td> $rs[VISION_left]</td> </tr> "; } ?> </tbody> </table> <br> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Examination</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php include("dbconnection.php"); $sql ="SELECT * FROM onexamnation WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[Examination]</td> <td> $rs[Result]</td> <td> $rs[left_result]</td> </tr> "; } ?> </tbody> <tfoot> </tfoot> </table> <?php } } ?> <h4 align="center"><b>Investigation</b></h4> <table id="example2" id ="demo" class="table table-bordered table-hover"> <thead> <tr> <div id="listingTable"> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <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> <h4><b>Rx</b></h4> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <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 include("dbconnection.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 id='example2' 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>"; //echo "<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 id='example2' 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> </form> </div> <head> <style> h2 { color: #4287f5; } a img { border: none; } #memo { padding-top: 50px; margin: 0 20px 0 60px; border-bottom: 1px solid #ddd; height: 150px; } #memo .logo { float: left; margin-right: 20px; } #memo .logo img { width: 150px; height: 100px; } #memo .company-info { float: right; text-align: right; } #memo .company-info > div:first-child { font-weight: bold; font-size: 22px; color: #1e73be; } #memo .company-info span { font-size: 11px; min-width: 20px; } </style> <script>$(function () { $("#example1").DataTable({ "responsive": true, "autoWidth": false, }); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false, "responsive": true, }); });</script> </div> <hr>