Server IP : 162.240.98.243 / Your IP : 18.220.88.62 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/www/login.easenup.in/ |
Upload File : |
<?php session_start(); require_once('../DBManager.php'); require_once('../LoginManager.php'); include("dbconnection.php"); $DisplayForm=True; $narayan=LoginManager::currentUser(); $hari=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM code_blue WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND id='$_GET[id]' AND status='END' "; $qsql = mysqli_query($con,$sql); if($rh = mysqli_fetch_array($qsql)) { $DisplayForm=False; echo "<script>window.location='showpage_codeblue.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$_GET[id]'</script>"; } if($DisplayForm) { ?> <?php session_start(); require_once("../patientmanager.php"); require_once("../DBManager.php"); include("dbconnection.php"); include("header.php"); include 'dashboarddocument.php'; if(isset($_POST['code_blue'])) { $sql ="UPDATE code_blue SET status='END',Subjective='$_POST[Subjective]',First_Responder='$_POST[First_Responder]',Establishes_unresponsiveness='$_POST[Establishes_unresponsiveness]',Drills_code='$_POST[Drills_code]',Lower_Bed='$_POST[Lower_Bed]',Universal_Precautions='$_POST[Universal_Precautions]',initiate_compressions='$_POST[initiate_compressions]',Airway_Assess='$_POST[Airway_Assess]',Carotid_femoral='$_POST[Carotid_femoral]',Breathing_Bag='$_POST[Breathing_Bag]',Airway_placement='$_POST[Airway_placement]',Second_Responder='$_POST[Second_Responder]',Crash_cart='$_POST[Crash_cart]',Sick_board='$_POST[Sick_board]',Applies_multifunction='$_POST[Applies_multifunction]',Monitor_PROMPTS='$_POST[Monitor_PROMPTS]',Proceed_defibrillation='$_POST[Proceed_defibrillation]',ACLS_qualified='$_POST[ACLS_qualified]',Interprets_rhythm='$_POST[Interprets_rhythm]',Third_Responder_BLS='$_POST[Third_Responder_BLS]',suction_equipment='$_POST[suction_equipment]',intubation_tray='$_POST[intubation_tray]',Establishes_Access='$_POST[Establishes_Access]',Contain_patient='$_POST[Contain_patient]',med_tray='$_POST[med_tray]',Fourth_fifth_responders='$_POST[Fourth_fifth_responders]',Verbalizes_Method='$_POST[Verbalizes_Method]',Communicates_Family='$_POST[Communicates_Family]',Complete_CodeBlue='$_POST[Complete_CodeBlue]',Secure_codestatement='$_POST[Secure_codestatement]',updated_at=now() WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND id='$_GET[id]'"; if($qsql = mysqli_query($con,$sql)) { echo "<script>alert('Update successfully');</script><script>window.location='showpage_codeblue.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$_GET[id] '</script>;</script>"; } else { echo "Sorry, there was an error uploading your file."; } } ?> ?> <style> .switch { position: relative; display: inline-block; width: 90px; height: 34px; } .switch input {display:none;} .slider5 { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ca2222; -webkit-transition: .4s; transition: .4s; border-radius: 34px; } .slider5: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 + .slider5 { background-color: #2ab934; } input:focus + .slider5 { box-shadow: 0 0 1px #2196F3; } input:checked + .slider5:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(55px); } /*------ ADDED CSS ---------*/ .slider5:after { content:'Undone'; color: white; display: block; position: absolute; transform: translate(-50%,-50%); top: 50%; left: 50%; font-size: 10px; font-family: Verdana, sans-serif; } input:checked + .slider5:after { content:'Done'; } .center { border: 1px solid grey; text-align:; } .box2{ display: none; } .center { border: 1px solid grey; text-align:; } .center2 { border: 5px solid grey; text-align:; } </style> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></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> <script> $(document).ready(function(){ $("select").change(function(){ $(this).find("option:selected").each(function(){ var optionValue = $(this).attr("value"); if(optionValue){ $(".box2").not("." + optionValue).hide(); $("." + optionValue).show(); } else{ $(".box2").hide(); } }); }).change(); }); $(document).ready(function(){ jQuery.ajax({ url: 'testalarm.php', type: 'POST', data: { myData: 'This is my data.', change:'test' }, success: function(res) { if(res ='sucess'){ $('#my_audio').each(function() { $(this).pause(); }); } } }); }); $('audio').each(function() { $(this).pause(); }); </script> <style> .center { border: 1px solid grey; text-align:; } </style> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <table id="example2" id ="demo" class="table table-bordered table-hover"> <thead> <tr> <div id="listingTable"> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <th><strong>Date Time</strong></th> <th>Towords</th> <th>Action</th> </tr> </thead> <?php $sql ="SELECT * FROM code_blue WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[created_at]</td><td> "; $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sql2 ="SELECT * FROM department WHERE departmentid='$rs[Ward]'"; $qsql2 = mysqli_query($con,$sql2); while($rs1 = mysqli_fetch_array($qsql2)) { echo " "; switch ($rs1[name]) { case 'DP_Intensive_care': echo ' Intensive care unit Nursing station'; break; case 'DP_General_ward': echo ' General ward Nursing Station'; break; case 'DP_Doctors_Notepad': echo ' Doctors Notepad'; break; case 'DP_reception': echo ' Reception'; break; case 'OPD_Front_desk': echo ' OPD Front desk'; break; case 'DP_SEMI_Pvt_ward': echo ' SEMI Pvt ward'; break; case 'DP_Pvt_Ward': echo ' Pvt Ward Nursing station'; break; case 'DP_OT_complex': echo ' OT complex Nursing station'; break; case 'DP_Pharmacy': echo ' Pharmacy'; break; case 'DP_Laboratory': echo ' Laboratory'; break; case 'DP_Diagnostic': echo ' Diagnostic'; break; case 'DP_Accounts': echo ' Accounts'; break; case 'e_a_nursing_station': echo ' E&A Nursing Station'; break; default: echo ''; } echo" - <b>$rs[Bed] </b></td> <td><a href='#'>View </a></td> "; } } } ?> </tbody> </table> <form name='code_blue' method='post'> <div class="checkbox"> <h3 align="center">Code Blue Checklist</h3> <table id="example2" class="table table-bordered table-hover"> <tr><td> <span style="font-size: 20px">First Responder</span></h3></td><td> <input name="First_Responder" type="text"> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Area Safety checked</span></h3></td><td><label class="switch"> <input name="Subjective" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Establishes unresponsiveness (shake shoulders/call names) </span></h3></td><td><label class="switch"> <input name="Establishes_unresponsiveness" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px"> Drills code (shouts for help & stays with patient)</span></h3></td><td><label class="switch"> <input name="Drills_code" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px"> Lower Bed removes pillows</span></h3></td><td><label class="switch"> <input name="Lower_Bed" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px"> Exercise *Universal Precautions”</span></h3></td><td><label class="switch"> <input name="Universal_Precautions" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px"> Evaluation : initiate compressions (at rate of 30:2 Rescue Breaths)</span></h3></td><td><label class="switch"> <input name="initiate_compressions" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px"> Airway/Assess (if no response ventilates x2 Ambu bag)</span></h3></td><td><label class="switch"> <input name="Airway_Assess" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px"> Carotid/femoral pulse 5-10 sec</span></h3></td><td><label class="switch"> <input name="Carotid_femoral" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px"> Breathing – AMBU Bag / Mask placed in correct Position seal maintained(Provides 2 breaths per 30 compressions)</span></h3></td><td><label class="switch"> <input name="Breathing_Bag" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Airway placement (Stabilizes indication & method for use ) </span></h3></td><td><label class="switch"> <input name="Airway_placement" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Second Responder </span> </td> <td> <input name="Second_Responder" type="text"> </td> </tr> <tr><td> <span style="font-size: 20px">Crash cart arrives </span></h3></td><td><label class="switch"> <input name="Crash_cart" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr> <td><span style="font-size: 20px">Sick board placed </span></h3></td><td><label class="switch"> <input name="Sick_board" type="checkbox"> <span class="slider"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Applies multifunction electrode pbads in correct Position (cleans skin / removes hair as needed) Connects multifunctional pads to therapy cable, Activates AED mode (orange area ) and follows AED </span></h3></td><td><label class="switch"> <input name="Applies_multifunction" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Monitor PROMPTS </span></h3></td><td><label class="switch"> <input name="Monitor_PROMPTS" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Proceed with defibrillation if indicated by AED (If No shock advised and no sins of circulation begin person CPR) </span></h3></td><td><label class="switch"> <input name="Proceed_defibrillation" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Third Responder : BLS/ACLS qualified </span></h3></td><td><input type='text' name='ACLS_qualified'> </td> </tr> <tr><td> <span style="font-size: 20px">Interprets rhythm, assists med administration & procedure </span></h3></td><td><label class="switch"> <input name="Interprets_rhythm" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Set Up suction equipment </span></h3></td><td><label class="switch"> <input name="suction_equipment" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Set up intubation tray </span></h3></td><td><label class="switch"> <input name="intubation_tray" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Establishes IV Access and setup IV solution (s) </span></h3></td><td><label class="switch"> <input name="Establishes_Access" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Contain patient’s charts or delegates task </span></h3></td><td><label class="switch"> <input name="Contain_patient" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Setup med tray & assists with medication administration </span></h3></td><td><label class="switch"> <input name="med_tray" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Fourth responders</span></h3></td><td> <input name="Fourth_fifth_responders" type="text"> </td> </tr> <tr><td> <span style="font-size: 20px">Verbalizes Method to print information strip from lips Monitoring</span></h3></td><td><label class="switch"> <input name="Verbalizes_Method" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Communicates with Family </span></h3></td><td><label class="switch"> <input name="Communicates_Family" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Complete Code Blue Record </span></h3></td><td><label class="switch"> <input name="Complete_CodeBlue" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> <tr><td> <span style="font-size: 20px">Secure code statement </span></h3></td><td><label class="switch"> <input name="Secure_codestatement" type="checkbox"> <span class="slider5"></span> </label> </td> </tr> </table> </div> <input type='submit' name='code_blue' value='Submit'> </div> </form> <?php } ?>