feuillemaladie = new Feuillemaladie(); $this->prestation = new Prestationactes(); $this->acte = new Detailtarifacte(); $this->bonpec = new Bonpec(); $this->garantie = new Garantiesbaremepriseencharge(); } public function index() { $numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C']; $idBeneficiaire = $_SESSION['p_idBeneficiaire_C']; $codePrestataire = $_SESSION['p_codePrestataire_C']; $datePrestation = $_SESSION['datePrestation']; $codeGarantie = "HOS"; $feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie); $situationHospit = $this->acte->getSituationTypeHospitalisation($codeGarantie, $datePrestation); $groupeMED = $this->prestation->getcumulhospitalisationmed_total(); $groupeCHI = $this->prestation->getcumulhospitalisationchi_total(); $groupeHOS = $this->prestation->getcumulgroupehospitalisation_total(); $this->garantie->getsourcebaremegarantienew($idBeneficiaire, $codeGarantie, $datePrestation); $situationHospit = $this->acte->getSituationTypeHospitalisation($codeGarantie, $datePrestation); $hospit_total = $this->prestation->gethospitalisation_total($numeroFeuilleMaladie); if($feuillemaladie['optionHospitalisation'] == "option-1"){ $codeActe = "HHM"; $plafondHospitalisation = $_SESSION['p_bareme']['gar_forfaitPlafondBeneficiaire']; $plafondHospitalisationFamille = $_SESSION['p_bareme']['gar_forfaitPlafondFamille']; }elseif ($feuillemaladie['optionHospitalisation'] == "option-3"){ $codeActe = "HHC"; $plafondHospitalisation = $_SESSION['p_bareme']['gar_forfaitPlafondBeneficiaire']; $plafondHospitalisationFamille = $_SESSION['p_bareme']['gar_forfaitPlafondFamille']; }else{ $codeActe = ""; $plafondHospitalisation = "9999999999"; $plafondHospitalisationFamille = "9999999999"; } $tm = $this->prestation->ticketModerateurDefinitif($codeGarantie, $codeActe, $datePrestation); $tauxCouverture = (100-$tm)."%";//$this->acte->tauxCouverture($tMGarantie); if($codeActe == ""){ $plafondActeHospit = "9999999999"; $plafondActeHospitFamille = "9999999999"; $periodicite = ""; $periodiciteEng = ""; }else{ $this->garantie->getsourcebaremenew($idBeneficiaire, $codeActe, $datePrestation); $plafondActeHospit = $_SESSION['p_bareme']['act_forfaitPlafondBeneficiaire'];//$this->prestation->getPlafondActe($codeActe); $plafondActeHospitFamille = $_SESSION['p_bareme']['act_forfaitPlafondFamille']; $codePeriodiciteActe = $_SESSION['p_bareme']['gar_codePeriodicitePlafondBeneficiaire']; $periodicite = $this->garantie->getlibelleperiodicite($codePeriodiciteActe); $periodiciteEng = $this->garantie->getlibelleperiodicite($codePeriodiciteActe); if($plafondActeHospit == "0"){ $plafondActeHospit = "9999999999"; $plafondActeHospitFamille = "9999999999"; $periodicite = ""; $periodiciteEng = ""; } } $this->garantie->baremesolde($idBeneficiaire,$codeActe,$codeGarantie,$numeroFeuilleMaladie); $baremesolde = $this->garantie->getbaremesolde($idBeneficiaire,$codeActe,$codeGarantie,$numeroFeuilleMaladie); $soldeConsommation = $baremesolde['soldeConsommation'] - $hospit_total['montantArembourser']; $this->genererVueAjax(array( 'prestations_total' => $prestations_total, 'plafondHospitalisation' => $plafondHospitalisation, 'tauxCouverture' => $tauxCouverture, 'soldeConsommation' => $soldeConsommation, 'hospit_total' => $hospit_total, 'situationHospit' => $situationHospit, 'groupeMED' => $groupeMED, 'groupeCHI' => $groupeCHI, 'groupeHOS' => $groupeHOS)); } }