Server IP : 162.240.98.243 / Your IP : 18.227.111.197 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/NewNurse/Patient/ |
Upload File : |
<?php if(isset($_POST['Classification_Incidenceva'])){ $updated_at=date("Y-m-d"); $created_at=date("F d, Y / h:i:s A"); $CheckPatient = $con->query("SELECT * FROM Classification_Incidence WHERE prescriptionid = '$_POST[prescriptionid]' AND patientid = '$_POST[patientid]' AND Classification_Incidence='$_POST[Classification_Incidence]' "); $numSU=mysqli_num_rows($CheckPatient); if($numSU > 0){ echo "<script>alert('Already Exists');</script>"; }else{ $Classification=$con->query("INSERT INTO Classification_Incidence(id,prescriptionid,patientid,Classification_Incidence,Minor_Reaction,entered_by,created_at,updated_at) VALUES (NULL,'$_POST[prescriptionid]','$_POST[patientid]','$_POST[Classification_Incidence]','$_POST[Suspected_Reaction_Id]','$_POST[entered_by]','$created_at','$updated_at')"); $last_id = mysqli_insert_id($con); $save_activity=$con->query("INSERT INTO save_activity(srno,userno,prescriptionid,discription,entered_by,link,created_at,updated_at) VALUES (NULL, '$_POST[patientid]','$_POST[prescriptionid]','Incident Report<br>Classification Incidence','$_POST[entered_by]','showClassification_Incidence.php?prescriptionid=$_POST[prescriptionid]&patientid=$_POST[patientid]&id=$last_id','$created_at','$updated_at')"); if($Classification){ echo "<script>alert('Classification of Incidence add successfully..');</script><script>window.history.go(-1)</script>;</script>"; } } } if(isset($_POST['Classification_Incidenceva2'])) { $updated_at=date("Y-m-d"); $created_at=date("F d, Y / h:i:s A"); $CheckPatient = $con->query("SELECT * FROM Classification_Incidence WHERE prescriptionid = '$_POST[prescriptionid]' AND patientid = '$_POST[patientid]' AND Classification_Incidence='$_POST[Classification_Incidence]' "); $numSU=mysqli_num_rows($CheckPatient); if($numSU > 0){ echo "<script>alert('Already Exists');</script>"; }else{ $Classification=$con->query("INSERT INTO Classification_Incidence(id,prescriptionid,patientid,Classification_Incidence,Minor_Reaction,entered_by,created_at,updated_at) VALUES (NULL,'$_POST[prescriptionid]','$_POST[patientid]','$_POST[Classification_Incidence]','$_POST[ReportDisaster_Corrective2]','$_POST[entered_by]','$created_at','$updated_at')"); $last_id = mysqli_insert_id($con); $save_activity=$con->query("INSERT INTO save_activity(srno,userno,prescriptionid,discription,entered_by,link,created_at,updated_at) VALUES (NULL, '$_POST[patientid]','$_POST[prescriptionid]','Incident Report<br>Classification Incidence','$_POST[entered_by]','showClassificationIncidence.php?prescriptionid=$_POST[prescriptionid]&patientid=$_POST[patientid]&id=$last_id','$created_at','$updated_at')"); if($Classification){ echo "<script>alert('Classification of Incidence 2 add successfully..');</script><script>window.history.go(-1)</script>;</script>"; } } } if(isset($_POST['Suspected_Reaction'])) { $updated_at=date("Y-m-d"); $created_at=date("F d, Y / h:i:s A"); $CheckPatient = $con->query("SELECT * FROM Suspected_Reaction WHERE prescriptionid = '$_POST[prescriptionid]' AND patientid = '$_POST[patientid]' AND Classification_Incidence=$_POST[Classification_Incidence]"); $numSU=mysqli_num_rows($CheckPatient); if($numSU > 0){ echo "<script>alert('Already Exists');</script>"; }else{ $Suspected_Reaction=$con->query("INSERT INTO Suspected_Reaction(id,prescriptionid,patientid,surgeryid,Classification_Incidence,Minor,Major,Minor_Reaction,Major_Reaction,Specify,otherAnswer,otherAnswer_date,Name_Medicine,Treatment_Given,Outcome,Corrective_action,Recovery_time,entered_by,created_at,updated_at) VALUES (NULL,'$_POST[prescriptionid]','$_POST[patientid]','0','$_POST[Classification_Incidence]','$_POST[Minor]','$_POST[Major]','$_POST[Minor_Reaction]','$_POST[Major_Reaction]','$_POST[Specify]','$_POST[otherAnswer]','$_POST[otherAnswer_date]','$_POST[Name_Medicine]','$_POST[Treatment_Given]','$_POST[Outcome1]','$_POST[Corrective_action]','$_POST[Recovery_time]','$_POST[entered_by]','$created_at','$updated_at')"); $id = mysqli_insert_id($con); // Obtain last inserted id $Classification=$con->query("INSERT INTO Classification_Incidence(id,prescriptionid,patientid,Suspected_Reaction_Id,Classification_Incidence,Minor_Reaction,entered_by,created_at,updated_at) VALUES (NULL,'$_POST[prescriptionid]','$_POST[patientid]','$id','$_POST[Classification_Incidence]','$_POST[ReportDisaster_Corrective]','$_POST[entered_by]','$created_at','$updated_at')"); $save_activity=$con->query("INSERT INTO save_activity(srno,userno,prescriptionid,discription,entered_by,link,created_at,updated_at) VALUES (NULL, '$_POST[patientid]','$_POST[prescriptionid]','Incident Report<br>Suspected Reaction','$_POST[entered_by]','showSuspected_Reaction.php?prescriptionid=$_POST[prescriptionid]&patientid=$_POST[patientid]&id=$id','$created_at','$updated_at')"); if($Classification){ echo "<script>alert('Suspected Reaction add successfully..');</script><script>window.history.go(-1)</script>;</script>"; } } } ?> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> function myFunction120() { var checkBox = document.getElementById("myCheck120"); var text = document.getElementById("text120"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction121() { var checkBox = document.getElementById("myCheck121"); var text = document.getElementById("text121"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } $(document).ready(function() { $("input[type='radio']").change(function() { if ($(this).val() == "Death") { $("#otherAnswer").show(); } else { $("#otherAnswer").hide(); } }); }); $(document).ready(function() { $("input[type='radio']").change(function() { if ($(this).val() == "Other") { $("#other").show(); } else { $("#other").hide(); } }); }); </script> <script> function myFunction() { var checkBox = document.getElementById("myCheck"); var text = document.getElementById("text"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction1() { var checkBox = document.getElementById("myCheck1"); var text = document.getElementById("text1"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction2() { var checkBox = document.getElementById("myCheck2"); var text = document.getElementById("text2"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction5() { var checkBox = document.getElementById("myCheck5"); var text = document.getElementById("text5"); if (checkBox.checked == true){ text.style.display = "none"; } else { text.style.display = "block"; } } $(document).ready(function() { $("div.desc").hide(); $("input[name$='Major_Reaction']").click(function() { var test = $(this).val(); $("div.desc").hide(); $("#" + test).show(); }); }); $(document).ready(function() { $("div.desc1").hide(); $("input[name$='action_taken']").click(function() { var test = $(this).val(); $("div.desc1").hide(); $("#" + test).show(); }); }); $(document).ready(function() { $("div.desc2").hide(); $("input[name$='Outcome1']").click(function() { var test = $(this).val(); $("div.desc2").hide(); $("#" + test).show(); }); }); </script> <style> .box{ color:black; padding: 20px; display: none; margin-top: 20px; } .Near_Miss{ background: white; } .Adverse_Event{ background: white; } .Sentinel_Event{ background:white; } </style> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $("#selectDiv").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> <h3><i class="fa fa-angle-right"></i> Classification of Incidence </h3> <form name="Classification_Incidenceva" method="post"> <input type="hidden" name="Suspected_Reaction_Id" value="Null"> <input type='hidden' name='entered_by' value='<?php echo $entered_by; ?>'> <input type='hidden' name='patientid' value='<?php echo $_GET['patientid']; ?>'> <input type='hidden' name='prescriptionid' value='<?php echo $_GET['prescriptionid']; ?>'> <table class='table table-hover table-bordered'> <tr> <td> <label for="address">Classification of Incidence </label></td> <td> <select name="Classification_Incidence" class='form-control' id=selectDiv> <option value="" disabled selected>Classification of Incidence </option> <option value="Near_Miss">Near Miss</option> <option value="Adverse_Event">Adverse Event</option> <option value="Sentinel_Event">Sentinel Event</option> </select></td> </tr> <tr> <td colspan='2'> <div class="Near_Miss box"> <table class='table table-hover table-bordered'> <tr> <td> <label>Native description of Occurrence</label> </td> <td> <input type="text" name="ReportDisaster_Native" placeholder="Native description of Occurrence" class='form-control'> </td> </tr> <tr> <td> <label>Corrective And Preventive Action Taken</label> </td> <td> <input type="text" name="ReportDisaster_Corrective" placeholder="Corrective And Preventive Action Taken" class='form-control'> </td> </tr> <tr> <td colspan='2'> <button style="float: right;" name="Classification_Incidenceva" type="submit" class='btn btn-success'> Save</button></td> </tr> </table> </div> </td> </tr> <tr> <td colspan='2'> <div class="Sentinel_Event box"> <table class='table table-hover table-bordered'> <tr> <td><label>Native description of Occurrence</label> </td> <td><input type="text" name="ReportDisaster_Native2" placeholder="Native description of Occurrence" class='form-control'> </td> </tr> <tr> <td><label>Corrective And Preventive Action Taken</label> </td> <td> <input type="text" name="ReportDisaster_Corrective2" placeholder="Corrective And Preventive Action Taken" class='form-control'> </td> </tr> <tr> <td colspan='2'><button style="float: right;" name="Classification_Incidenceva2" type="submit" class='btn btn-success'> Save</button> </td> </tr> </table> </div> </td> </tr> <tr> <td colspan='2'> <div class="Adverse_Event box"> <h3 align='center'>Suspected Adverse Drug Reaction</h3> <table id='example2' class='table table-bordered table-hover' width='100%'> <tr><td><h4 align='center'>Seriousness of Reaction</h4></td></tr> </table> <table id='example2' class='table table-bordered table-hover' width='100%'> <tr> <td width='25%'><span style="font-size: 20px">Minor Reaction </span></h3></td><td width='25%'><label class="switch"> <input name="Minor" type="checkbox" id="myCheck120" onclick="myFunction120()"> <span class="slider"></span> </label> </td> <td width='25%'><span style="font-size: 20px">Major Reaction </span></h3></td><td width='25%'><label class="switch"> <input name="Major" type="checkbox" id="myCheck121" onclick="myFunction121()"> <span class="slider"></span> </label> </td> <?php $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <input type='hidden' name='prescriptionid' value='$rs[prescriptionid]'> <input type='hidden' name='patientid' value='$rs[patientid]'> "; } ?> </tr> </table> <div id="text120" style="display:none"> <table id="example2" class="table table-bordered table-hover"> <tr><td width='50%'> Minor Reaction</td> <td width='50%'><select name='Minor_Reaction' class='form-control'> <option value='' >Minor Reaction</option> <option value='Fever'>Fever</option> <option value='Chills'>Chills</option> <option value='Skin_Rash'>Skin Rash</option> <option value='Urticaria'>Urticaria</option> <option value='Bodyache'>Bodyache</option> </select> </td> </tr> </table></div> <div id="text121" style="display:none"> <table id="example2" class="table table-bordered table-hover"> <tr> <label> <input type="radio" class="ace" name="Major_Reaction" value="Death"> <span class='lbl'>Death </span></label> <label> <input type="radio" class="ace" name="Major_Reaction" value="Life threatening"> <span class='lbl'>Life threatening </span></label> <label> <input type="radio" class="ace" name="Major_Reaction" value="Disability"> <span class='lbl'>Disability </span></label> <label> <input type="radio" class="ace" name="Major_Reaction" value="Chest pain"> <span class='lbl'>Chest pain </span></label> <label> <input type="radio" class="ace" name="Major_Reaction" value="Loin Pain"> <span class='lbl'>Loin Pain </span></label> <label> <input type="radio" class="ace" name="Major_Reaction" value="Breathlessness"> <span class='lbl'>Breathlessness </span></label> <label> <input type="radio" class="ace" name="Major_Reaction" value="Decreased urine Output"> <span class='lbl'>Decreased urine Output </span></label> <label> <input type="radio" class="ace" name="Major_Reaction" value="Other"> <span class='lbl'>Other </span> </td> </tr> </table></div> <div style="display:none;" name="other" id="other"> <table id="example2" class="table table-bordered table-hover"> <tr><td>Specify </td><td><input type='text' name='Specify' class='form-control'></td></tr> </table> </div> <div style="display:none;" name="otherAnswer" id="otherAnswer"> <table id="example2" class="table table-bordered table-hover"> <tr><td>Date and time </td><td><input type='datetime-local' name='otherAnswer_date' class='form-control'></td></tr> </table> </div> <table id="example2" class="table table-bordered table-hover"> <tr> <td width='50%'> Name of Medicine : </td> <td width='50%'><input type="text" placeholder="Name of Medicine" name="Name_Medicine" class='form-control'></td> </tr> <tr> <td width='50%'> Native description of Occurrence: </td> <td width='50%'><textarea name="Native_description" rows="2" cols="70" class='form-control'> </textarea></td> </tr> <tr> <td width='50%'> Treatment Given : </td> <td width='50%'><textarea name="Treatment_Given" rows="2" cols="70" class='form-control'> </textarea></td> </tr> <tr> <td width='50%'> Outcome: </td> <td width='50%'><select name='Outcome1' class='form-control'> <option value='' >Outcome</option> <option value='Fatal'>Fatal</option> <option value='Used'>Used</option> <option value='Recovering'>Recovering</option> <option value='Unknown'>Unknown</option> <option value='Continuing'> Continuing </option> <option value='Recovered'> Recovered </option> <option value='Other'> Other </option> </select></td> </tr> <tr> <td width='50%'> Corrective And Preventive Action Taken : </td> <td width='50%'><textarea name="Corrective_action" rows="2" cols="70" class='form-control'> </textarea></td> </tr> <tr> <td width='50%'> Date and time of Recovery : </td> <td width='50%'><input type='datetime-local' name='Recovery_time' class='form-control'></td> </tr> <br> </table> <br> <br> <input type="submit" name="Suspected_Reaction" value="Submit" class='btn btn-success'></div> </div> </td> </tr> </table> </form>