acte = new Detailtarifacte(); $this->prestation = new Prestationactes(); $this->familleacte = new Familleacte(); $this->prescription = new Prescription(); $this->feuillemaladie = new Feuillemaladie(); } public function index() { $feuille = $this->prestation->getFeuilleFactureCaduc(); if($feuille['facture']=='0' && $feuille['bonCaduc']=='0'){ $type = $this->requete->getParametreFormulaire("type"); $this->prestation->majoptionhospitalisation($type); $_SESSION['p_option_hospitalisation'] = $type; $_SESSION['codeFamilleActeHos'] = "FA100"; //isset($_SESSION['codeFamilleActeHos'])? $_SESSION['codeFamilleActeHos']:'FA100'; $familleacte = $this->familleacte->getFamilleActeTypeHospitalisation($type); $this->genererVueAjax(array('familleacte' => $familleacte, 'feuille' => $feuille)); }else{ $codeGarantie = "HOS"; $numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C']; $codePrestataire = $_SESSION['p_codePrestataire_C']; $feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie); if($feuillemaladie['optionHospitalisation'] == "option-1"){ $codeActe = "HHM"; }elseif ($feuillemaladie['optionHospitalisation'] == "option-3"){ $codeActe = "HHC"; }else{ $codeActe = ""; } if($codeActe == ""){ $plafondActeHospit = "9999999999"; }else{ $plafondActeHospit = $this->prestation->getPlafondActe($codeActe); } $situation = $this->acte->getSituationGarantieBeneficiaire($codeGarantie); if ($situation['plafond'] > "0" && $situation['plafond'] != "9999999999"){ $plafondHospitalisation = $situation['plafond']; }else{ $plafondHospitalisation = "0"; } $tMGarantie = $this->prescription->ticketModerateurGarantieBeneficiaire($codeGarantie); $listeProlongations = $this->feuillemaladie->getListeProlongations($numeroFeuilleMaladie); $tauxCouverture = $this->prescription->tauxCouverture($tMGarantie); $hospit_total = $this->prestation->gethospitalisation_total($numeroFeuilleMaladie); $prestations = $this->prestation->getactesmedicauxhospitalisation($numeroFeuilleMaladie, $codePrestataire); $prolongations = $this->prestation->getactesmedicauxhospitalisationprolongation($numeroFeuilleMaladie, $codePrestataire); $prestations_total = $this->prestation->getactesmedicauxhospitalisation_total($numeroFeuilleMaladie, $codePrestataire); $prolongations_total = $this->prestation->getactesmedicauxhospitalisationprolongation_total($numeroFeuilleMaladie, $codePrestataire); $this->genererVueAjax(array('prestations' => $prestations, 'prestations_total' => $prestations_total, 'listeProlongations' => $listeProlongations, 'tauxCouverture' => $tauxCouverture, 'feuillemaladie' => $feuillemaladie, 'prolongations' => $prolongations, 'prolongations_total' => $prolongations_total, 'hospit_total' => $hospit_total, 'feuille' => $feuille, 'plafondHospitalisation' => $plafondHospitalisation, 'plafondActeHospit' => $plafondActeHospit)); } } public function enregistreractemedical() { $codeActe = $this->requete->getParametreFormulaire("codeActe"); $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); $prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique"); $valeurActe = $prixActe ; $quantite = "1"; $montantTm = $this->requete->getParametreFormulaire("montantTm", "numerique"); $aRembourser = $this->requete->getParametreFormulaire("aRembourser", "numerique"); $ententePrealable = $this->requete->getParametreFormulaire("ententePrealable"); $autorisation = "0"; $prixTarif = $prixActe ; $prixBase = $this->requete->getParametreFormulaire("prixBase", "numerique"); $depassement = $this->requete->getParametreFormulaire("depassement", "numerique"); $motifHospit = $this->requete->getParametreFormulaire("motifHospit"); $this->prestation->enregistreractemedicalhospitalisation($codeActe, $codeMedecin, $quantite, $prixActe, $valeurActe, $montantTm, $aRembourser, $ententePrealable, $autorisation, $prixTarif, $prixBase, $depassement, $motifHospit); $this->executerAction("index"); } public function supprimeracte() { $idPrestationactes = $this->requete->getParametre("idPrestationactes"); $this->prestation->supprimeractehospitalisation($idPrestationactes); $this->executerAction("index"); } public function majquantite() { $idPrestationactes = $this->requete->getParametre("idPrestationactes"); $quantite = $this->requete->getParametreFormulaire("quantite", "numerique"); $this->prestation->majquantitehospitalisation($idPrestationactes, $quantite); //$this->executerAction("index"); } public function majvaleuracte() { $idPrestationactes = $this->requete->getParametre("idPrestationactes"); $valeurActe = $this->requete->getParametreFormulaire("valeurActe", "numerique"); $this->prestation->majvaleuracte($idPrestationactes, $valeurActe); //$this->executerAction("index"); } public function enregistrertypehospitalisation() { $type = $this->requete->getParametre("type"); $_SESSION['p_option_hospitalisation'] = $type; if($type=="option-1"){ $_SESSION['p_acte_hospitalisation'] = "HHM"; $_SESSION['accouchement'] = "0"; }elseif($type=="option-2"){ $_SESSION['p_acte_hospitalisation'] = "AC0000068"; $_SESSION['accouchement'] = "0"; }elseif($type=="option-3"){ $_SESSION['p_acte_hospitalisation'] = "HHC"; $_SESSION['accouchement'] = "0"; }elseif($type=="option-4"){ $_SESSION['p_acte_hospitalisation'] = "MACH"; $_SESSION['accouchement'] = "1"; } $this->prestation->majoptionhospitalisation($type); $this->executerAction("index"); } public function validerhospitalisation() { $numeroChambre = $this->requete->getParametreFormulaire("numeroChambre"); $this->prestation->validerhospitalisation($numeroChambre); // $this->executerAction("index"); } }