Server IP : 162.240.98.243 / Your IP : 3.145.204.54 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("../patientmanager.php"); require_once("../DBManager.php"); if( $_POST['submit_1'] ) { PatientManager::opdslip("$_GET[prescriptionid]","$_GET[patientid]","$_POST[significate]","$_POST[Admission_diagnosis]","$_POST[tratment]","$_POST[Nutritional_Diagnosis]","$_POST[eyetype]","$_POST[note]","$_POST[enteredby]"); } ?> <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> .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> <form method="post" action="" name="submit" onSubmit="return validateform()"> <table id="example2" class="table table-bordered table-hover"> <tbody> <?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 " <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] "; } 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 include("dbconnection.php"); session_start(); $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 include("dbconnection.php"); session_start(); $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 include("dbconnection.php"); session_start(); $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]'>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 include("dbconnection.php"); session_start(); $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='link' 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>"; } ?> </table> <table id="example2" class="table table-bordered table-hover"> <?php session_start(); include("dbconnection.php"); session_start(); $DisplayForm=True; $sql99 ="SELECT * FROM opdslip9 WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql99 = mysqli_query($con,$sql99); if($rs = mysqli_fetch_array($qsql99)) { $DisplayForm=False; echo ""; } if($DisplayForm) { ?> <thead> <tr> <?php include("dbconnection.php"); session_start(); $DisplayForm=True; $sql7 ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND casetype='Pregnancy' OR prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND casetype='Eye_Care'"; $qsql7 = mysqli_query($con,$sql7); if($rs7 = mysqli_fetch_array($qsql7)) { $DisplayForm=False; echo ""; } if($DisplayForm) { ?> <tr><td width='50%'> Significant findings : </td> <td width='50%'><textarea rows="2" name='significate' cols="50"></textarea></td></tr> <tr> <td> Nutritional Diagnosis</td><td><select name='Nutritional_Diagnosis'> <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 height="62">Provisional diagnosis </td> <td><input type="text" placeholder="Provisional diagnosis" name="Admission_diagnosis" list='Admission_diagnosis'> <datalist name='Admission_diagnosis' id='Admission_diagnosis'> <option value='Bedsores'>Bedsores</option> <option value='Covid'>Covid</option> </datalist> </td> </tr> <tr> <td>Proposed Treatment/ Surgery:</td> <td> <select class='selectva' id="select12-state" name="tratment"> <option value="">Proposed Treatment/ Surgery</option> <?php include("dbconnection.php"); $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> <?php } ?> </table> <?php include("dbconnection.php"); session_start(); $DisplayForm=True; $sql7 ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND casetype='Pregnancy' OR prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND casetype='Eye_Care'"; $qsql7 = mysqli_query($con,$sql7); if($rs7 = mysqli_fetch_array($qsql7)) { $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]' AND casetype!='Pregnancy' OR prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND casetype!='Eye_Care' "; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { { ?> <?php $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo" <table id='example2' class='table table-bordered table-hover'> <tr><td width='50%'> Significant findings : </td> <td width='50%'>$rs[significate]</td></tr> <tr><td>Nutritional diagnosis</td><td>$rs[Nutritional_Diagnosis]</td></tr> <tr><td>Provisional diagnosis</td><td>$rs[Admission_diagnosis]</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>Remarks</th> </tr> <tr> <?php $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <td> $rs[Admission_diagnosis]</td> <td> $rs[eyetype] </td> <td> $rs[note] </td> "; } ?> </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='Ocular_Alignment_motility'>Ocular Alignment & motility</option> <option value='Lid_Adenexae'>Lid/Adenexae </option><option value='Sciera'>Sciera</option><option value='Conjunctiva'> Conjunctiva </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 CAT'>Mature CAT </option> <option value='PSEUDO'>PSEUDO</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='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='RD D.N PALSY'>RD D.N PALSY</option> <option value='ALL.CONJ'>ALL.CONJ. </option> <option value='YAG PI PATENT'>YAG PI PATENT </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='CONJUNCTIVITIS'>CONJUNCTIVITIS </option> <option value='NCO'>NCO </option> <option value='LENTAL CHANGES'>LENTAL CHANGES</option> <option value='MYOPIC FUNDUS'>MYOPIC FUNDUS </option> <option value='ASTHIGMATISM-MYOPIC'>ASTHIGMATISM-MYOPIC </option> <option value='ASTIGMATISM-HYPERMETROPIA'>ASTIGMATISM-HYPERMETROPIA </option> <option value='DIFFUSE EPISCLERITIS'>DIFFUSE EPISCLERITIS</option> <option value='DAUMATIC APHAKIA'>DAUMATIC APHAKIA </option> <option value='NUCLEUS DROP'>NUCLEUS DROP </option> <option value='FUC. STEROID'>FUC. STEROID </option> <option value='PTERYGIUM Sx'>PTERYGIUM Sx</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>Remarks:</td> <td><textarea name="note" rows="2" cols="40"></textarea></td> </tr> <tr> <td>Proposed Treatment/ Surgery:</td> <td> <select class='selectva' id="select12-state" name="tratment"> <option value="">Proposed Treatment/ Surgery</option> <?php include("dbconnection.php"); $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> </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>