Server IP : 162.240.98.243 / Your IP : 18.226.165.70 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("../LoginManager.php"); require_once("../DBManager.php"); include("dashboarddocument.php"); include("header.php"); ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <?php require_once("../patientmanager.php"); require_once("../DBManager.php"); if( $_POST['submit_1'] ) { PatientManager::opdslip("$_GET[prescriptionid]","$_GET[patientid]","$_POST[significate]","$_POST[Admission_diagnosis]","$_POST[other_Admission_diagnosis]","$_POST[tratment]","$_POST[Nutritional_Diagnosis]","$_POST[eyetype]","$_POST[note]","$_POST[enteredby]","$_POST[casetype]","$_POST[typevisit]","$_POST[DrName]"); } ?> <?php include("dbconnection.php"); if(isset($_GET[delid])) { $sql ="DELETE FROM Obstetric_History WHERE id='$_GET[delid]'"; $qsql=mysqli_query($con,$sql); if(mysqli_affected_rows($con) == 1) { echo "<script>alert('Deleted successfully..');</script>"; } } ?> <style> .box{ display: none; } </style> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> var mic = document.getElementById('speechinput'); mic.onfocus = mic.blur; mic.onwebkitspeechchange = function(e) { document.getElementById('mytextarea').value = speechinput .value; }; </script> <script> $(document).ready(function(){ $("select").change(function(){ $(this).find("option:selected").each(function(){ var optionValue = $(this).attr("value"); if(optionValue){ $(".box").not("." + optionValue).hide(); $("." + optionValue).show(); } else{ $(".box").hide(); } }); }).change(); }); </script> <style> #loaderImg { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; border: 10px solid grey; border-radius: 50%; border-top: 10px solid black; width: 100px; height: 100px; animation: spin 1s linear infinite; } @keyframes spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } </style> <style> .switch { position: relative; display: inline-block; width: 90px; height: 34px; } .switch input {display:none;} .slidernaraya { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ca2222; -webkit-transition: .4s; transition: .4s; border-radius: 34px; } .slidernaraya:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; border-radius: 50%; } input:checked + .slidernaraya { background-color: #2ab934; } input:focus + .slidernaraya { box-shadow: 0 0 1px #2196F3; } input:checked + .slidernaraya:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(55px); } /*------ ADDED CSS ---------*/ .slidernaraya:after { content:'No'; color: white; display: block; position: absolute; transform: translate(-50%,-50%); top: 50%; left: 50%; font-size: 10px; font-family: Verdana, sans-serif; } input:checked + .slidernaraya:after { content:'Yes'; } .center { border: 1px solid grey; text-align:; } </style> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <div class='center'> <?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" <h3 align='right'><a href='edit_opdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>Edit </a></h3>"; } ?> <div class="card-body"> <h2 align="center">Initial Diagnosis</h2> <div style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div> <form method="post" action="" name="submit" id="myForm1" onSubmit="return validateform()"> <table id="example2" class="table table-bordered table-hover"> <tbody> <?php include("dbconnection.php"); $sqlpatient1= "SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); $rr1=mysqli_fetch_array($qsqlpatient1); $sqldoctor= "SELECT * FROM site_users WHERE userno='$rr1[Admitted_Under]'"; $qsqldoctor = mysqli_query($con,$sqldoctor); $rsdoctor = mysqli_fetch_array($qsqldoctor); echo " <input type='hidden' name='casetype' id='casetype' value='$rr1[casetype]'/> <input type='hidden' name='typevisit' id='typevisit' value='$rr1[typevisit]'/> <tr> <td height='62'> Consultant: </td> <td>"; echo" $rsdoctor[name] <input type='hidden' name='DrName' id='DrName' value='$rsdoctor[name]'/> "; ?> <?php $sqlpatient= "SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); while($rr=mysqli_fetch_array($qsqlpatient)) { $sqlpatient1= "SELECT * FROM addaspatient WHERE prescriptionid='$rr[prescriptionid]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rr1=mysqli_fetch_array($qsqlpatient1)) { $sqlpatient2= "SELECT * FROM Vulnerability WHERE prescriptionid='$rr1[prescriptionid]'"; $qsqlpatient2 = mysqli_query($con,$sqlpatient2); while($rr2=mysqli_fetch_array($qsqlpatient2)) { echo " <input type='hidden' name='casetype' id='casetype' value='$rr1[casetype]'/> <input type='hidden' name='typevisit' id='typevisit' value='$rr1[typevisit]'/> <tr> <td height='62'> Consultant: </td> <td>"; $sqldoctor= "SELECT * FROM site_users WHERE userno='$rr1[Admitted_Under]'"; $qsqldoctor = mysqli_query($con,$sqldoctor); while($rsdoctor = mysqli_fetch_array($qsqldoctor)) { echo" $rsdoctor[name] <input type='hidden' name='DrName' id='DrName' value='$rsdoctor[name]'/> "; } echo"</td></tr> <tr> <td height='62'> Reason for Admission: </td> <td>$rr[Reason_for_Admission]</td></tr> <tr><td height='62'> Vulnerability/Triage Assessment: </td> <td>$rr1[triage]</td> </tr> "; }} } ?> <tr><td width='50%'> Covid 19 Checklist: </td> <?php $DisplayForm=True; $sql7 ="SELECT * FROM CovidChecklist WHERE prescriptionid='$_GET[prescriptionid]'"; $qsql7 = mysqli_query($con,$sql7); if($rs7 = mysqli_fetch_array($qsql7)) { $DisplayForm=False; echo ""; } if(!$DisplayForm) { echo " <td width='50%'><DIV class='button' data-modal='modalOne'> <span style='color:blue;align:center;font-size: 14px'>Filled</span></DIV></td>"; } else{ echo "<td width='50%'>Not Applicable</td>"; } ?> </tr> <tr><td width='50%'>MLC: </td> <?php $DisplayForm=True; $sql7 ="SELECT * FROM mlc WHERE prescriptionid='$_GET[prescriptionid]'"; $qsql7 = mysqli_query($con,$sql7); if($rs7 = mysqli_fetch_array($qsql7)) { $DisplayForm=False; echo ""; } if(!$DisplayForm) { echo " <td width='50%'><DIV class='button' data-modal='modalmlc'> <span style='color:blue;align:center;font-size: 14px'>Filled</span></DIV></td>"; } else{ echo "<td width='50%'>Not Applicable</td>"; } ?> </tr> <tr><td width='50%'>Trauma: </td> <?php $DisplayForm=True; $sql7 ="SELECT * FROM trauma_checklist WHERE prescriptionid='$_GET[prescriptionid]'"; $qsql7 = mysqli_query($con,$sql7); if($rs7 = mysqli_fetch_array($qsql7)) { $DisplayForm=False; echo ""; } if(!$DisplayForm) { echo " <td width='50%'><DIV class='button' data-modal='modaltrauma'> <span style='color:blue;align:center;font-size: 14px'>Filled</span></DIV></td>"; } else{ echo "<td width='50%'>Not Applicable</td>"; } ?> </tr> </tbody> </table> <br> <table id="example2" class="table table-bordered table-hover"> <thead> <tr><th>Medical Assessment </th><th>Status</th><th>Action</th></tr> <?php $sql ="SELECT * FROM medi_condition_final WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[medicalcon] <b>$rs[Specify]</b></td> <td> $rs[Status]</td> <td><a href='edit_medicalcon.php?patientid=$rs[patientid]&medicalcoid=$rs[medicalcoid]'>Edit</a></td> </tr> "; } ?> </table> <?php $sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rt = mysqli_fetch_array($qsql)) { echo" <a href='medicalcon_nurse.php?patientid=$rt[patientid]' class='btn btn-info' style='margin:12px;'>Add More</a> "; } ?> <?php $sql3 ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql3 = mysqli_query($con,$sql3); if($rs2 = mysqli_fetch_array($qsql3)) { if(on==$rs2[Addiction]) { ?> <h3 align='center'>Addiction </h3> <table id='example2' class='table table-bordered table-hover'> <tr> <?php $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Tobacco']; if($usertype == 'on'){ echo "<td width='50%'>Tobacco: </td> <td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>"; } else{ echo "<td width='50%'>Tobacco: </td><td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>"; } } ?> </tr> <tr> <?php $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Alcohol']; if($usertype == 'on'){ echo "<td width='50%'>Alcohol: </td> <td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>"; } else{ echo "<td width='50%'>Alcohol: </td><td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>"; } } ?> </tr> <tr> <?php $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Smoking']; if($usertype == 'on'){ echo "<td width='50%'>Smoking: </td> <td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>"; } else{ echo "<td width='50%'>Smoking: </td><td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>"; } } ?> </tr> <?php } } ?> <table id="example2" class="table table-bordered table-hover"> <thead> <?php $sqlpatient2= "SELECT * FROM Vulnerability WHERE prescriptionid='$_GET[prescriptionid]'"; $qsqlpatient2 = mysqli_query($con,$sqlpatient2); while($rtv=mysqli_fetch_array($qsqlpatient2)) { echo" <tr><td height='62'>Level of Consciousness : </td> <td>$rtv[Level_Consciousness]</td> </tr> <tr><td height='62'>Dependency: </td> <td>$rtv[Dependency]</td> </tr> <tr><td height='62'>Mode of movement: </td> <td>$rtv[Modn]</td> </tr> <tr><td height='62'>Pain Assessment: </td> <td>$rtv[Pain_Assessment]</td> </tr> <tr><td height='62'>Pain Location: </td> <td>$rtv[Pain_Location]</td> </tr> "; } ?> <tr> <?php $sql ="SELECT * FROM Vulnerability WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['fall_risk']; if($usertype == 'on'){ echo "<td width='50%'>Fall Risk: </td> <td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>"; } else{ echo "<td width='50%'>Fall Risk: </td><td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>"; } } ?> </tr> <tr><td width='50%'>Nutritional Screening : </td> <?php $DisplayForm=True; $sql7 ="SELECT * FROM Nutritional_Screening WHERE prescriptionid='$_GET[prescriptionid]'"; $qsql7 = mysqli_query($con,$sql7); if($rs7 = mysqli_fetch_array($qsql7)) { $DisplayForm=False; echo ""; } if(!$DisplayForm) { echo " <td width='50%'><a href='#' style='color:blue'>Available</a></td>"; } else{ echo "<td width='50%'>Unavailable</td>"; } ?> </tr> </table> </div> </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 <a href='edit_showpage_Medical_Assessment.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'><B>Edit</B> </a>"; } ?> </h3> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Fever']; if($usertype == 'on'){ echo " <tr><td width='33%'> Fever: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Fever_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['smell']; if($usertype == 'on'){ echo " <tr><td width='33%'> Loss of Smell: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[smell_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Diarrhoea']; if($usertype == 'on'){ echo " <tr><td width='33%'> Diarrhoea: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Diarrhoea_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Deformity']; if($usertype == 'on'){ echo " <tr><td width='33%'> Facial Deformity: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Deformity_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Cough']; if($usertype == 'on'){ echo " <tr><td width='33%'> Cough: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Cough_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Taste']; if($usertype == 'on'){ echo " <tr><td width='33%'> Loss of Taste: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Taste_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Weakness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Weakness: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Weakness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Breathlessness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Breathlessness: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Breathlessness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Appetite']; if($usertype == 'on'){ echo " <tr><td width='33%'> Shivering: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Appetite_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Limbs']; if($usertype == 'on'){ echo " <tr><td width='33%'> Power Loss in Limbs: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Limbs_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Throat']; if($usertype == 'on'){ echo " <tr><td width='33%'> Sore Throat : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Throat_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Vomitting']; if($usertype == 'on'){ echo " <tr><td width='33%'> Vomitting : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Vomitting_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Slurred_Voice']; if($usertype == 'on'){ echo " <tr><td width='33%'> Slurred Voice: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Slurred_Voice_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Nausea']; if($usertype == 'on'){ echo " <tr><td width='33%'> Nausea: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Nausea_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Loss_Appetite']; if($usertype == 'on'){ echo " <tr><td width='33%'> Loss of Appetite: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Loss_Appetite_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Delusion']; if($usertype == 'on'){ echo " <tr><td width='33%'> Delusion: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Delusion_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Fits_Anger']; if($usertype == 'on'){ echo " <tr><td width='33%'> Fits of Anger: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Fits_Anger_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Depression']; if($usertype == 'on'){ echo " <tr><td width='33%'> Depression: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Depression_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Memory_Loss']; if($usertype == 'on'){ echo " <tr><td width='33%'> Memory Loss: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Memory_Loss_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Bleeding_Disorder']; if($usertype == 'on'){ echo " <tr><td width='33%'> Bleeding Disorder: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Bleeding_Disorder_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Migraine']; if($usertype == 'on'){ echo " <tr><td width='33%'> Migraine : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Migraine_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Frequent_Urination']; if($usertype == 'on'){ echo " <tr><td width='33%'> Frequent Urination : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Frequent_Urination_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Swollen_Join']; if($usertype == 'on'){ echo " <tr><td width='33%'> Swollen Join : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Swollen_Join_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Weight_Gain']; if($usertype == 'on'){ echo " <tr><td width='33%'> Weight Gain : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Weight_Gain_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['weight_loss']; if($usertype == 'on'){ echo " <tr><td width='33%'> weight loss : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[weight_loss_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Body_pain']; if($usertype == 'on'){ echo " <tr><td width='33%'> Body pain : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Body_pain_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Physical_Injury']; if($usertype == 'on'){ echo " <tr><td width='33%'> Physical Injury : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Physical_Injury_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tr><td width='33%'> Other Symptoms : </td> <td width='33%'>$rs[Other_Symptoms]</td></tr>"; } ?> <?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> <table id="example2" class="table table-bordered table-hover"> <?php $DisplayForm=True; $sql ="SELECT * FROM opdslip WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); if($rh = mysqli_fetch_array($qsql)) { $DisplayForm=False; echo " "; } if($DisplayForm) { ?> <!--<tr><td width='50%'>Significant findings : </td>--> <!--<td width='50%'></td></tr>--> <tr> <td> Nutritional Diagnosis</td><td> <input type='hidden' name='significate' value='null' /> <select name='Nutritional_Diagnosis' required> <option value='' disabled selected>Nutritional Diagnosis</option> <option value='Normal'>Normal</option> <option value='Obese'>Obese</option> <option value='Overweight'> Overweight </option><option value='Underweight'> Underweight</option> <option value='Malnourished'> Malnourished</option> </select></td></tr> <tr> <td>Proposed Treatment/ Surgery:</td> <td> <select class='selectva' id="select12-state" name="tratment" required> <option value="">Proposed Treatment/ Surgery</option> <?php include("dbconnection.php"); $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); $patientType=""; if($rsnew = mysqli_fetch_array($qsql)) { $patientType = $rsnew['casetype']; } $sqlpatient1 = "SELECT * FROM list_tretment"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo "<option value='$rsn[trid]'>$rsn[tratment]</option>"; } ?> </td> </select> </tr> <tr> <?php if($patientType !== "Eye_Care") { ?> <td height="62">Provisional diagnosis </td> <td> <input type="text" class="form-control" id="Admission_diagnosis" autocomplete="off" name="Admission_diagnosis" list="results"> <datalist id="results"> <?php include("dbconnection.php"); $sql ="SELECT * FROM `daignosist_icd`"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <option value='$rs[Description] ($rs[ICD])'></option> "; } ?> </datalist> </td> <?php } ?> </tr> <?php } ?> <tr> <?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]) { ?> <thead> </table> <?php $DisplayForm=True; $sql ="SELECT * FROM opdslip WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); if($rh = mysqli_fetch_array($qsql)) { $DisplayForm=False; echo " "; } if($DisplayForm) { ?> <p align="center"><input type="submit" name="submit_1" id="submit_1" value="Save" /></p> </form> <?php } ?> <?php } } ?> <?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%'>Admission Diagnosis : </td> <td width='50%'>$rs[Admission_diagnosis]</td></tr> <tr><td>Nutritional diagnosis</td><td>$rs[Nutritional_Diagnosis]</td></tr> <tr>"; /*if(Eye_Care==$rs[casetype]) { echo" <td>Provisional diagnosis</td><td>$rs[Admission_diagnosis]</td>"; }*/ echo" </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 Treatment & 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]) { ?> <table id="example2" class="table table-bordered table-hover"> <tr><th>Provisional diagnosis</th> <th>Eye</th> <th>Note</th> <th>Action</th> </tr> <tr> <?php if(isset($_GET['opdslipNum'])) { $opdslip=$con->query("DELETE FROM opdslip WHERE Srno='".$_GET['opdslipNum']."'"); if($opdslip==1){ echo "<script>alert('Delete successfully..');</script>"; echo "<script>window.location='testopdslip1.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]'</script>"; } } $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[eyetype] </td> <td> $rs[note] </td> "; ?> <td> <a href='testopdslip1.php?prescriptionid=<?php echo $_GET[prescriptionid] ?>&patientid=<?php echo $_GET[patientid] ?>&opdslipNum=<?php echo $rs[Srno] ?>' onclick="return confirm('Are you sure?')"> <i class='fa fa-trash-o' aria-hidden='true' style='font-size:20px;color:#b30808; margin-left:5px;'></i></a> </td> <?php } ?> </tr><tr><td></td><td></td></tr><tr> <br><br> <td>Provisional diagnosis</td> <td> <select name='Admission_diagnosis'><option value=''disabled selected>Provisional diagnosis</option> <option value='Glass Advices Distance'>Glass Advices – Distance</option> <option value='Glass Advices Near'>Glass Advices – Near</option> <option value='Vitreous'>Vitreous</option> <option value='Age-Related Macular Degeneration (AMD)'>Age-Related Macular Degeneration (AMD)</option> <option value='Anophthalmia and Microphthalmia'>Anophthalmia and Microphthalmia</option> <option value='Astigmatism'>Astigmatism</option> <option value='Behcet's Disease'>Behcet's Disease</option> <option value='Bietti's Crystalline Dystrophy'>Bietti's Crystalline Dystrophy</option> <option value='Blepharitis'>Blepharitis</option> <option value='Blepharospasm'>Blepharospasm</option> <option value='Central Retinal Vein Occlusion (CRVO)'>Central Retinal Vein Occlusion (CRVO)</option> <option value='Cerebral Visual Impairment (CVI)'>Cerebral Visual Impairment (CVI)</option> <option value='Coloboma'>Coloboma</option> <option value='Color Blindness'>Color Blindness</option> <option value='Convergence Insufficiency'>Convergence Insufficiency</option> <option value='Corneal Conditions'>Corneal Conditions</option> <option value='CORNEAL ULCER'>CORNEAL ULCER</option> <option value='Diabetic Retinopathy'>Diabetic Retinopathy</option> <option value='Dry Eye'>Dry Eye</option> <option value='Fundus / Retina'>Fundus / Retina</option> <option value='Farsightedness (Hyperopia)'>Farsightedness (Hyperopia)</option> <option value='Glaucoma'>Glaucoma</option> <option value='Graves’ Eye Disease'>Graves’ Eye Disease</option> <option value='Idiopathic Intracranial Hypertension'>Idiopathic Intracranial Hypertension</option> <option value='Low Vision'>Low Vision</option> <option value='Macular Edema'>Macular Edema</option> <option value='Macular Hole'>Macular Hole</option> <option value='Macular Pucker'>Macular Pucker</option> <option value='Nearsightedness (Myopia)'>Nearsightedness (Myopia)</option> <option value='Ocular Histoplasmosis Syndrome (OHS)'>Ocular Histoplasmosis Syndrome (OHS)</option> <option value='Pink Eye'>Pink Eye</option> <option value='Presbyopia'>Presbyopia</option> <option value='Rare Diseases'>Rare Diseases</option> <option value='Refractive Errors'>Refractive Errors</option> <option value='Retinal Detachment'>Retinal Detachment</option> <option value='Retinitis Pigmentosa'>Retinitis Pigmentosa</option> <option value='Retinoblastoma'>Retinoblastoma</option> <option value='Stargardt Disease'>Stargardt Disease</option> <option value='Retinopathy of Prematurity'>Retinopathy of Prematurity</option> <option value='HYPEROPIA'>HYPEROPIA</option> <option value='Usher Syndrome'>Usher Syndrome</option> <option value='Uveitis'>Uveitis</option> <option value='Vitreous Detachment'>Vitreous Detachment</option> <option value='C/D Ratio'>C/D Ratio</option> <option value='Ocular_Alignment_motility'>Ocular Alignment & motility</option> <option value='Lid_Adenexae'>Lid/Adenexae </option><option value='Sciera'>Sciera</option><option value='Conjuctiva'> Conjuctiva </option> <option value='Cornea'>Cornea</option> <option value='Anterior'>Anterior</option><option value='Chamber'> Chamber</option><option value='IRS_NVI_PXF'> IRS/NVI/PXF</option><option value='Pupil'> Pupil</option> <option value='Lens/IOL'>Lens/IOL</option><option value='Cataract'> Cataract</option><option value='Subluxated'> Subluxated</option><option value='Dislocated'> Dislocated </option> <option value='Posterior Capsule'> Posterior Capsule </option> <option value='Cornreal Opacity'>Cornreal Opacity</option> <option value='Mature CATARACT'>Mature CATARACT </option> <option value='SUBLUXATED CATARACT'>SUBLUXATED CATARACT </option> <option value='TAUMATIC APHAKIA'>TAUMATIC APHAKIA </option> <option value='MICROPHTHALMIA'>MICROPHTHALMIA </option> <option value='IRIS COLOBOMA'>IRIS COLOBOMA </option> <option value='PSEUDO'>PSEUDO</option> <option value='DISLOCATED IOL'>DISLOCATED IOL</option> <option value='AMBLYOPIA'>AMBLYOPIA</option> <option value='NS4+PSC'>NS4+PSC</option> <option value='PTOSIS'>PTOSIS </option> <option value='IMSC'>IMSC</option> <option value='TESSELASED FUNDUS'>TESSELASED FUNDUS</option> <option value='NS2+PSC'>NS2+PSC </option> <option value='NS3+PSC'>NS3+PSC </option> <option value='ASTIGMATISM-MYOPIC'>ASTIGMATISM-MYOPIC</option> <option value='LATTICE WITH HOLE'>LATTICE WITH HOLE </option> <option value='LATTICE'>LATTICE</option> <option value='LATTICE DEGENERATION WITH HOLE'>LATTICE DEGENERATION WITH HOLE </option> <option value='PCO'>PCO </option> <option value='C.O'>C.O </option> <option value='SUP.RD'>SUP.RD</option> <option value='DISC.EDEMA'>DISC.EDEMA </option> <option value='OLD R.D'>OLD R.D </option> <option value='DRY AMD 3'>DRY AMD 3</option> <option value='DRY ARMD'>DRY ARMD</option> <option value='RD D.N PALSY'>RD D.N PALSY</option> <option value='RD'>RD</option> <option value='ALLERGIC CONJUCTIVITIS'>ALLERGIC CONJUCTIVITIS </option> <option value='ANGLE CLOSURE GLAUCOMA'>ANGLE CLOSURE GLAUCOMA </option> <option value='ANPTHTHALMIA'>ANPTHTHALMIA </option> <option value='Anterior'>Anterior </option> <option value='YAG PI'>YAG PI </option> <option value='PAC'>PAC </option> <option value='PACG'>PACG</option> <option value='DENSE PAC [PPC?]'>DENSE PAC [PPC?] </option> <option value='YAG CAP DONE'>YAG CAP DONE </option> <option value='PSEUDO(TORIC IOL)'>PSEUDO(TORIC IOL)</option> <option value='NS2'>NS2</option> <option value='FLOATERS'>FLOATERS </option> <option value='CONJUCTIVITIS'>CONJUCTIVITIS </option> <option value='NCO'>NCO </option> <option value='LENTAL CHANGES'>LENTAL CHANGES</option> <option value='MYOPIC FUNDUS'>MYOPIC FUNDUS </option> <option value='CENTRAL RETINAL ARTERY OCCLUSION'>CENTRAL RETINAL ARTERY OCCLUSION </option> <option value='ASTIGMATISM-HYPERMETROPIA'>ASTIGMATISM-HYPERMETROPIA </option> <option value='EARLY LENTICULAR CHANGES'>EARLY LENTICULAR CHANGES </option> <option value='CHORIORETINAL COLOBOMA'>CHORIORETINAL COLOBOMA </option> <option value='DIFFUSE EPISCLERITIS'>DIFFUSE EPISCLERITIS</option> <option value='DAUMATIC APHAKIA'>DAUMATIC APHAKIA </option> <option value='NUCLEUS DROP'>NUCLEUS DROP </option> <option value='NUCLEAR SCLEROSIS'>NUCLEAR SCLEROSIS </option> <option value='NVI'>NVI </option> <option value='OCCLUSIO PUPIL'>OCCLUSIO PUPIL </option> <option value='POAG'>POAG </option> <option value='POST SUBCAPSULAR CATARACT'>POST SUBCAPSULAR CATARACT </option> <option value='POSTERIOR POLAR CATARACT'>POSTERIOR POLAR CATARACT </option> <option value='POSTERIOR CAPSULE OPACIFICATION'>POSTERIOR CAPSULE OPACIFICATION </option> <option value='FUC. STEROID'>FUC. STEROID </option> <option value='PTERYGIUM Sx'>PTERYGIUM Sx</option> <option value='PTERYGIUM'>PTERYGIUM </option> <option value='PSEUDOPHAKIA'>PSEUDOPHAKIA</option> <option value='CHOROIDTIS'>CHOROIDTIS </option> <option value='POST.TR.LEUCOMO'>POST.TR.LEUCOMO </option> <option value='ZONE 3 IMMATURE RETINA'>ZONE 3 IMMATURE RETINA </option> <option value='Other'>Other(specify)</option> </td> </tr> <tr><td> </td> <td> <div class="Other box"> <input type='text' placeholder='Specify' name='other_Admission_diagnosis'></div></td> </tr> <tr><td>Eye </td> <td> <select name='eyetype'><option value=''disabled selected>Eye</option> <option value='Left Eye'>Left Eye</option> <option value='Right Eye'>Right Eye</option> <option value='Both Eye'>Both Eye</option> </select> </td> </tr> <tr> <td>Note:</td> <td><textarea name="note" rows="2"></textarea></td> </tr> </table> <table id="example2" class="table table-bordered table-hover"> <tr><td><p align="center"><input type="submit" name="submit_1" id="submit_1" value="Add" /></p></td></tr> </table> </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> <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> <a href='testopdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]&delid=$rs[id]'> <i class='fa fa-trash' aria-hidden='true' style='color:red; font-size:20px'></i></a> </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><a href='testopdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]&delid=$rs[id]'> <i class='fa fa-trash' aria-hidden='true' style='color:red; font-size:20px'></i></a> </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><a href='testopdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]&delid=$rs[id]'> <i class='fa fa-trash' aria-hidden='true' style='color:red; font-size:20px'></i></a> </div> </td> </tr> "; } } ?> </table> <?php } } ?> <div class='container'> <div class='row'> <div class='col-sm-12'> <?php include("dbconnection.php"); $opdslip=$con->query("SELECT * FROM `opdslip` WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND status='1'"); $RowOPDSlip=$opdslip->fetch_assoc(); if($RowOPDSlip['status']=='1') { ?> <center><a href='testopdslip2.php?prescriptionid=<?php echo $_GET['prescriptionid'] ?>&patientid=<?php echo $_GET['patientid'] ?>' style='text-align:center;margin:12px;' class='btn btn-info'>Next Page</a></center> <?php } ?> </div> </div> </div> <script> let modalBtns = [...document.querySelectorAll(".button")]; modalBtns.forEach(function(btn) { btn.onclick = function() { let modal = btn.getAttribute('data-modal'); document.getElementById(modal) .style.display = "block"; } }); let closeBtns = [...document.querySelectorAll(".close")]; closeBtns.forEach(function(btn) { btn.onclick = function() { let modal = btn.closest('.modal'); modal.style.display = "none"; } }); window.onclick = function(event) { if(event.target.className === "modal") { event.target.style.display = "none"; } } function History(drmeid) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("divmedidr").innerHTML = this.responseText; } }; xmlhttp.open("GET","loadgravida.php?drmeid="+drmeid,true); xmlhttp.send(); } function LSCS(lscsid) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("lscs").innerHTML = this.responseText; } }; xmlhttp.open("GET","loadlscs.php?lscsid="+lscsid,true); xmlhttp.send(); } function Outcome(Outcomeid) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("Outcome").innerHTML = this.responseText; } }; xmlhttp.open("GET","loadOutcome.php?Outcomeid="+Outcomeid,true); xmlhttp.send(); } </script> <html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/js/standalone/selectize.min.js" integrity="sha256-+C0A5Ilqmu4QcSPxrlGpaZxJ04VjsRjKu+G82kl5UJk=" crossorigin="anonymous"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.bootstrap3.min.css" integrity="sha256-ze/OEYGcFbPRmvCnrSeKbRTtjG4vGLHXgOqsyLFTRjg=" crossorigin="anonymous" /> </head> <body> <script type="text/javascript"> $(document).ready(function(){ $('#myForm').submit(function() { $('#loaderImg').show(); return true; }); }); $(document).ready(function(){ $('#ObstetricForm').submit(function() { $('#loaderImg').show(); return true; }); }); </script> <script> $(document).ready(function () { $('select').selectize({ sortField: 'text' }); }); </script> <script> $(document).ready(function(){ $("#Admission_diagnosis").on("input", function(e){ searchtext = $("#Admission_diagnosis").val(); $.ajax({ method:"post", url:"testopdslip1.php", // data:{backendname:valueName} data:{text:searchtext}, success:function(res){ console.log(res); //What Should I Do I Don't Know } }) }); }) </script>