'0' && $idProformaHospitalisation > "0" && $facture == "0")
{
$estDateFuture = (new DateTime($feuillemaladie['dateDebutHospit'])) > (new DateTime('today'));
$autoriser = ($estDateFuture && $autoriserBonHospitAvantDate=="0") ? "0" : "1";
}
// FIN KANE 10/04/2025
if($avisHospitalisation == "1" && $facture == "0" && $idProlongation == "0" && $contestation == "0"){
if($autoriser=="1"){
$v_msg="Avis favorable! Vous êtes autorisé à poursuivre l'hospitalisation du patient.";
}else{
$v_msg="Hospitalisation chirurgicale non encore autorisée! Attendez, s'il vous plaît, la date de sa programmation. Merci pour votre compréhension!";
}
$scroll = "scroll";
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
if($autoriser=="1"){
$v_msg="Favorable opinion! You are authorized to continue the patient's hospitalization.";
}else{
$v_msg="Surgical hospitalization not yet authorized! Please wait for the scheduling date. Thank you for understanding!";
}
}
}elseif($avisHospitalisation == "1" && $facture == "0" && $idProlongation > "0" && $contestation == "0"){
$v_msg="Avis favorable! Vous êtes autorisé à proroger l'hospitalisation du patient.";
$scroll = "scroll";
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
$v_msg="Favorable opinion! You are authorized to extend the patient's hospitalization.";
}
}elseif($avisHospitalisation == "2" && $facture == "0" && $contestation == "0"){
$scroll = "scroll";
$v_msg="Avis d'hospitalisation envoyé pour validation! Veuillez patienter...";
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
$v_msg="Notice of Hospitalization sent for validation! Please wait...";
}
}elseif($avisHospitalisation == "3" && $facture == "0" && $contestation == "0"){
$scroll = "scroll";
$v_msg="Désolé! L'hospitalisation n'a pas été autorisé par l'assureur! Le patient en a été informé.";
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
$v_msg="Sorry! Hospitalization was not authorized by the insurer! The patient was informed.";
}
}elseif($avisHospitalisation == "4" && $facture == "0" && $contestation == "0"){
$scroll = "scroll";
$v_msg="Avis de prorogation d'hospitalisation envoyé pour validation! Veuillez patienter...";
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
$v_msg="Notice of extension of hospitalization sent for validation! Please wait...";
}
}
else{
$scroll = "scroll";
$v_msg="";
}
?>