Server IP : 162.240.98.243 / Your IP : 18.118.2.240 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/print/ |
Upload File : |
<div class='col-sm-12'> <?php session_start(); require_once('../DBManager.php'); require_once('../LoginManager.php'); include("../dbconnection.php"); $sql2 ="SELECT * FROM save_activity WHERE srno='$_GET[srno]'"; $qsql2 = mysqli_query($con,$sql2); if($re1 = mysqli_fetch_array($qsql2)) { include 'dashboarddocument.php'; } ?> <?php include 'fileheader.php'; ?> <?php $sqlpatient2 = "SELECT * FROM site_users WHERE userno='$rpatient[Admitted_Under]'"; $qsqlpatient2 = mysqli_query($con,$sqlpatient2); if($rsn2 = mysqli_fetch_array($qsqlpatient2)) { echo" <div class='checkbox'><span style='float: left;'><b>Admission On :</b> $rpatient[created_at]<br> <b>Consultant :</b>$rsn2[name]($rpatient[casetype]) </span> <span style='float: right;'><B>File No.</B> :$rpatient[prescriptionid] <br>"; $sqlpatient = "SELECT * FROM save_activity WHERE prescriptionid='$_GET[prescriptionid]' AND discription='Intial Assessment<br>Vulnerability Assessment<br>Doc.no-'"; $qsqlpatient = mysqli_query($con,$sqlpatient); if($rsp = mysqli_fetch_array($qsqlpatient)) { if($rsp[discription]== 'Intial Assessment<br>Vulnerability Assessment<br>Doc.no-'){ echo"<b>Doc.no </b>: $rsp[srno]"; } else{ echo ""; } } echo "</span></div><br> <br><br> <div class='checkbox'><span style='float: left;'><b>UHID :</b> $rspi1[patientid]</span><span style='float: right;'><b>Name</b> :$rspi1[patientname]</span></div> <br> <div class='checkbox'><span style='float: left;'><b>Age:</b> $rspi1[dob]</span><span style='float: right;'><b>SEX :</b>$rspi1[gendor]</span></div> <div class='card-body'> "; } ?> <br> <div class="panel panel-primary"> <div class="panel-body"> <h4 class="text-on-pannel text-primary"><strong class="text-uppercase"> Vulnerability Assessment </strong></h4> <br> <table width='100%' border='1' class='table table-bordered table-hover' style='width:100%;' border='1'> <?php $sql ="SELECT * FROM Vulnerability WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td width='50%'>Level of Consciousness :</td> "; $a=$rs[Eye_Opening_Response]; $b=$rs[Best_Verbal_Response]; $c=$a+$b; $d=$rs[Best_Motor_Response]; $e=$c+$d; if ($rs[Level_Consciousness]=='Un-conscious') { echo"<td width='50%'><b>$rs[Level_Consciousness]</b> <br><b>Score :</b> <span>$e/15 </span></td>"; } elseif ($rs[Level_Consciousness]=='Semi Conscious') { echo"<td width='50%'><b>$rs[Level_Consciousness]</b> <br><b>Score :</b> <span>$e/15 </span></td>"; } else { echo"<td width='50%'>$rs[Level_Consciousness] </td>"; } } ?> <?php $sql1 ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql1 = mysqli_query($con,$sql1); if($rs1 = mysqli_fetch_array($qsql1)) { $sql ="SELECT * FROM Vulnerability WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td width='50%'>Dependency :</td> <td width='50%'>$rs[Dependency] </td> </tr> <tr> <td width='50%'>Mode of Movement :</td> <td width='50%'>$rs[Modn] </td> </tr> <tr> <td width='50%'>Vulnerability Assessment/ Triage :</td> <td width='50%'>$rs1[triage] </td> </tr> <tr> <td width='50%'>Pain Assessment :</td> <td width='50%'>$rs[Pain_Assessment]/10 </td> </tr> <tr> <td width='50%'>Pain Location :</td> <td width='50%'>$rs[Pain_Location]"; if($rs[Pain_Location1]!=='') { echo", $rs[Pain_Location1]"; } if($rs[Pain_Location2]!=='') { echo", $rs[Pain_Location2]"; } if($rs[Pain_Location3]!=='') { echo", $rs[Pain_Location3]"; } if($rs[Pain_Location4]!=='') { echo", $rs[Pain_Location4]"; } if($rs[Pain_Location5]!=='') { echo", $rs[Pain_Location5]"; } echo" </td> </tr> </table> "; } } ?> <?php $sql ="SELECT * FROM Vulnerability WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[fall_risk]) { ?> <h3 align='center'>Fall Risk</h3> <table width='100%' border='1' class='table table-bordered table-hover' style='width:100%;' border='1'> <?php $sql ="SELECT * FROM Vulnerability WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { if($rs[low_fall_risk] == 'on'){ echo " <tr><td width='50%'>Low fall risk: </td> <td width='50%'>Yes</td></tr>"; if($rs[implement_low] == 'on'){ echo " <tr><td width='50%'>implement low fall risk interventions per protocol: </td> <td width='50%'>Yes</td></tr>"; } else{ echo "<tr><td width='50%'>implement low fall risk interventions per protocol: </td> <td width='50%'>No</td></tr>"; } if($rs[Complete_paralysis] == 'on'){ echo " <tr><td width='50%'>Complete paralysis or completely immobilized: </td> <td width='50%'>Yes</td></tr>"; } else{ echo "<tr><td width='50%'>Complete paralysis or completely immobilized: </td> <td width='50%'>No</td></tr>"; } } if($rs[high_fall_risk] == 'on'){ echo " <tr><td width='50%'>High fall risk: </td> <td width='50%'>Yes</td></tr>"; if($rs[History_more] == 'on'){ echo " <tr><td width='50%'> History of more than one fall within 6 months before admission: </td> <td width='50%'>Yes</td></tr>"; } else{ echo "<tr><td width='50%'>History of more than one fall within 6 months before admission: </td> <td width='50%'>No</td></tr>"; } if($rs[Patient_experienced] == 'on'){ echo " <tr><td width='50%'> Patient has experienced a fall during the hospitalization: </td> <td width='50%'>Yes</td></tr>"; } else{ echo "<tr><td width='50%'>Patient has experienced a fall during the hospitalization: </td> <td width='50%'>No</td></tr>"; } if($rs[deemed_high] == 'on'){ echo " <tr><td width='50%'> Patient is deemed high fall-risk per protocol such as seizure precaution: </td> <td width='50%'>Yes</td></tr>"; } else{ echo "<tr><td width='50%'>Patient is deemed high fall-risk per protocol such as seizure precaution: </td> <td width='50%'>No</td></tr>"; } } } ?> <?php } } ?> </table> <?php $sql ="SELECT * FROM Vulnerability WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sql1 ="SELECT * FROM site_users WHERE userno='$rs[entered_by]'"; $qsql1 = mysqli_query($con,$sql1); if($rs1 = mysqli_fetch_array($qsql1)) { echo"<h5><b> Created & Updated </b><h5> <table width='100%' border='1' class='table table-bordered table-hover' style='width:100%;' border='1'> <tr><td width=50%><b>By :</b>$rs1[name] </b><td width='50%'><b>At :</b> $rs[updated_at] </tr>"; } } ?> </table> <div style="page-break-before:always"> </div> </div> </div> </div>