Server IP : 162.240.98.243 / Your IP : 13.58.220.83 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/print/ |
Upload File : |
<div class='col-sm-12'> <?php session_start(); require_once('../DBManager.php'); require_once('../LoginManager.php'); include("../dbconnection.php"); $sql2 ="SELECT * FROM save_activity WHERE srno='$_GET[srno]'"; $qsql2 = mysqli_query($con,$sql2); if($re1 = mysqli_fetch_array($qsql2)) { include 'dashboarddocument.php'; } ?> <?php include 'fileheader.php'; ?> <?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='Opd Slip<br>Nutrition Recommendation<br>Doc.no-'"; $qsqlpatient = mysqli_query($con,$sqlpatient); if($rsp = mysqli_fetch_array($qsqlpatient)) { if($rsp[discription]== 'Opd Slip<br>Nutrition Recommendation<br>Doc.no-'){ echo"<b>Doc.no </b>: $rsp[srno]"; } else{ echo ""; } } echo "</span></div><br> <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 'Prescription'; ?> </strong></h4> <br> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> </div> <!--///////////////////////////////////--> <?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' style='width:100%;' border='1'> <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]) { ?> <?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' style='width:100%;' border='1'> <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]) { ?> <?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' style='width:100%;' border='1'> <?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]) { ?> <h4 align='center'><B>Chief Complain </B></h4> <table id='example2' 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); 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 } } ?> <h4 align="center"><B>Vitals</B></h4> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> <thead> <tr> <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 $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' style='width:100%;' border='1'> "; $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-------------------*/--> </br></br> <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <?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 $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { ?> <?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' style='width:100%;' border='1'> <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 $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 } } ?> <?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 $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 $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 $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 $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 $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 $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> <table id="example2" class="table table-bordered table-hover"> <tr><th>Date</th><th>Towords</th><th>Action</th></tr> <?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> </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> </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> </td> </tr> "; } } ?> </table> <?php } } ?> <!--/*--------------------end significant---------------------*/--> <?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" style='width:100%;' border='1'> <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 " <td> $rs[Admission_diagnosis] <b>$rs[other_Admission_diagnosis]</td> <td> $rs[note] </td> <td> $rs[eyetype] </td> "; } ?> </tr> </table> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> <thead> <tr> <th>Visual Acuity Test</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?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" style='width:100%;' border='1'> <thead> <tr> <th>Glass Advices Distance</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?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" style='width:100%;' border='1'> <thead> <tr> <th>Glass Advices Near</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?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" style='width:100%;' border='1'> <thead> <tr> <th>Examination</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?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" style='width:100%;' border='1'> <thead> <tr> <th>Date Time</th> <th>Investigation</th> <th>Result</th> <th>Evidence (Upload)</th> </tr> </thead><tbody> <?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 " <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" style='width:100%;' border='1'> <thead> <tr> <th>Drug & Dose </th> <th> Route</th> <th>Note</th> <th>Frequency </th> <th>Duration</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 id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <?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' style='width:100%;' border='1'> <?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> </div></div> </div> </div> </div>