84 lines
2.7 KiB
PHP
Executable File
84 lines
2.7 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Dentaire.php';
|
|
require_once 'Modele/Prescription.php';
|
|
require_once 'Modele/Medecin.php';
|
|
require_once 'Modele/Feuillemaladie.php';
|
|
|
|
class ControleurDentisterie extends Controleur {
|
|
private $menuvue;
|
|
private $obs;
|
|
private $medecin;
|
|
private $prescription;
|
|
private $feuille;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Dentisterie');
|
|
|
|
$codeTypePrestation = "DEN";
|
|
|
|
$this->prescription = new Prescription();
|
|
$this->medecin = new Medecin();
|
|
|
|
$this->obs = new Dentaire();
|
|
$this->feuille = new Feuillemaladie();
|
|
}
|
|
|
|
public function index() {
|
|
|
|
$contestation = $this->feuille->getContestationFeuille();
|
|
|
|
if($contestation == "1"){
|
|
$this->rediriger("Feuillemaladie");
|
|
}
|
|
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
|
|
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
|
|
|
$codeGarantie = "DEN";
|
|
$codeSpecialite = "DEN";
|
|
|
|
$datePrestation = $this->prescription->getDateSurvenance($numeroFeuilleMaladie); //date('Y-m-d');
|
|
|
|
$_SESSION['p_datePrestation'] = $datePrestation;
|
|
|
|
$actes = array(); //$this->obs->getactesdentisterie($datePrestation);
|
|
|
|
$medecins = $this->medecin->getpraticiensprestataireconsultation($codePrestataire, $codeSpecialite);
|
|
|
|
$dents = $this->obs->getListeDents();
|
|
|
|
$typesactes = $this->obs->getListeTypesActesDentaire();
|
|
|
|
$nbreProthese = $this->obs->nombre_transaction_acte_dentaire("PRO");
|
|
|
|
$tm = $this->obs->ticketModerateurDefinitif($codeGarantie, "", $datePrestation);
|
|
$tauxCouverture = (100-$tm)."%";
|
|
|
|
$prestations = $this->obs->getdetaildentaire($numeroFeuilleMaladie, $codePrestataire);
|
|
|
|
//var_dump($prestations);
|
|
//die();
|
|
|
|
$prestations_total = $this->obs->getdetaildentaire_total($numeroFeuilleMaladie, $codePrestataire);
|
|
|
|
$_SESSION['bool'] = "0";
|
|
|
|
$dentiste = $this->obs->getDentiste($numeroFeuilleMaladie, $codePrestataire);
|
|
|
|
if(!is_array($dentiste)){
|
|
$dentiste = array('codeMedecin' => "", 'medecin' => "", 'motifDentaire' => "");
|
|
}
|
|
|
|
$this->genererVue(array('actes' => $actes, 'dents' => $dents, 'prestations' => $prestations,
|
|
'prestations_total' => $prestations_total, 'nbreProthese' => $nbreProthese, 'typesactes' => $typesactes,
|
|
'tauxCouverture' => $tauxCouverture, 'datePrestation' => $datePrestation, 'medecins' => $medecins,
|
|
'dentiste' => $dentiste));
|
|
}
|
|
|
|
|
|
} |