alert('Session Expired..');";
}
$title='Edit Medical Assessment';
$narayan=LoginManager::currentUser();
$harilal=LoginManager::getUserTypeByuname("$narayan");
$sql ="SELECT * FROM site_users WHERE userno='$harilal'";
$qsql = mysqli_query($con,$sql);
$rs = mysqli_fetch_array($qsql);
$target_dir = "uploads/";
$filename = basename($_FILES["Upload_MLC_Slip"]["name"]);
$target_file = $target_dir . basename($_FILES["Upload_MLC_Slip"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
if(isset($_POST['Medical_Assessment']))
{
$updated_at=date("F d, Y / h:i:s A");
$sql="UPDATE Medical_Assessment SET Chief_Complain='$_POST[Chief_Complain]',Covid='$_POST[Covid]',Fever='$_POST[Fever]',Fever_note='$_POST[Fever_note]',smell='$_POST[smell]',smell_note='$_POST[smell_note]',Diarrhoea='$_POST[Diarrhoea]',Diarrhoea_note='$_POST[Diarrhoea_note]',Deformity='$_POST[Deformity]',Deformity_note='$_POST[Deformity_note]',Cough='$_POST[Cough]',Cough_note='$_POST[Cough_note]',Taste='$_POST[Taste]',Taste_note='$_POST[Taste_note]',Weakness='$_POST[Weakness]',Weakness_note='$_POST[Weakness_note]',Breathlessness='$_POST[Breathlessness]',Breathlessness_note='$_POST[Breathlessness_note]',Appetite='$_POST[Appetite]',Appetite_note='$_POST[Appetite_note]',Limbs='$_POST[Limbs]',Limbs_note='$_POST[Limbs_note]',Throat='$_POST[Throat]',Throat_note='$_POST[Throat_note]',Vomitting='$_POST[Vomitting]',Vomitting_note='$_POST[Vomitting_note]',Slurred_Voice='$_POST[Slurred_Voice]',Slurred_Voice_note='$_POST[Slurred_Voice_note]',Nausea='$_POST[Nausea]',Nausea_note='$_POST[Nausea_note]',Loss_Appetite='$_POST[Loss_Appetite]',Loss_Appetite_note='$_POST[Loss_Appetite_note]',Delusion='$_POST[Delusion]',Delusion_note='$_POST[Delusion_note]',Fits_Anger='$_POST[Fits_Anger]',Fits_Anger_note='$_POST[Fits_Anger_note]',Depression='$_POST[Depression]',Depression_note='$_POST[Depression_note]',Memory_Loss='$_POST[Memory_Loss]',Memory_Loss_note='$_POST[Memory_Loss_note]',Bleeding_Disorder='$_POST[Bleeding_Disorder]',Bleeding_Disorder_note='$_POST[Bleeding_Disorder_note]',Migraine='$_POST[Migraine]',Migraine_note='$_POST[Migraine_note]',Frequent_Urination='$_POST[Frequent_Urination]',Frequent_Urination_note='$_POST[Frequent_Urination_note]',Swollen_Join='$_POST[Swollen_Join]',Swollen_Join_note='$_POST[Swollen_Join_note]',Weight_Gain='$_POST[Weight_Gain]',Weight_Gain_note='$_POST[Weight_Gain_note]',weight_loss='$_POST[weight_loss]',weight_loss_note='$_POST[weight_loss_note]',Body_pain='$_POST[Body_pain]',Body_pain_note='$_POST[Body_pain_note]',Physical_Injury='$_POST[Physical_Injury]',Physical_Injury_note='$_POST[Physical_Injury_note]',Other_Symptoms='$_POST[Other_Symptoms]',Other_Symptoms_note='$_POST[Other_Symptoms_note]',RED_EYE='$_POST[RED_EYE]',RED_EYE_note='$_POST[RED_EYE_note]',Swollen_Eye='$_POST[Swollen_Eye]',Swollen_Eye_note='$_POST[Swollen_Eye_note]',Conjunctiva='$_POST[Conjunctiva]',Conjunctiva_note='$_POST[Conjunctiva_note]',Itchiness='$_POST[Itchiness]',Itchiness_note='$_POST[Itchiness_note]',Dislocated='$_POST[Dislocated]',Dislocated_note='$_POST[Dislocated_note]',Blur_Vision='$_POST[Blur_Vision]',Blur_Vision_note='$_POST[Blur_Vision_note]',Partial_Blindness='$_POST[Partial_Blindness]',Partial_Blindness_note='$_POST[Partial_Blindness_note]',Blindness='$_POST[Blindness]',Blindness_note='$_POST[Blindness_note]',created_at='$_POST[created_at]',updated_at='$updated_at' WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
$sql1 ="UPDATE save_activity SET created_at='$_POST[created_at]',updated_at='$updated_at' WHERE prescriptionid='$_GET[prescriptionid]' AND userno='$_GET[patientid]' AND discription='Intial Assessment
Medical Assessment
Doc.no-'";
if($qsql = mysqli_query($con,$sql))
{
if($qsql = mysqli_query($con,$sql1))
{
echo ";";
}
}else {
echo "Sorry, there was an error uploading your file.";
}
}
?>
window.location='showrequestforadmission.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]'";
}
if($DisplayForm)
{
?>