Example #1
0
 function genPacs($img = 'images/pacs.gif', $text = '')
 {
     $pref = "Pacs";
     if ($this->options->getOption($pref . "_Actif") and (!$this->options->getOption($pref . "_Droit") or $this->droits->getDroit($this->options->getOption($pref . "_Droit")))) {
         if ($_GET['appelerPacs']) {
             $user = $this->options->getOption($pref . "_User");
             if (!$user) {
                 $user = $this->user->getUid();
             }
             // C:\wscript.exe oemcall.vbs us=medsen pw=Cosmos10! pi=@IPP
             //XhamBluePig::sendJNLP ( "PacsWeb", '"C:\Program Files\Foxit Software\Foxit Reader\Foxit Reader.exe"' ) ;
             XhamBluePig::sendJNLP("PacsWeb", '"c:\\wscript.exe"', 'oemcall.vbs', 'us=medsen', 'pw=Cosmos10!', 'pi=' . $this->idu);
         }
         if ($text) {
             $lien = $text;
         } else {
             $lien = '<img src="' . $img . '" style="border: 0px;" alt="Pacs" />';
         }
         $inf = XhamTools::genInfoBulle("Lancement du Pacs");
         return '<a href="' . URLNAVI . $this->navi->genNaviFull() . '&appelerPacs=1" ' . $inf . '>' . $lien . '</a>' . $act;
     }
 }
Example #2
0
 function genFiche()
 {
     global $options;
     global $session;
     // Chargement du template ModeliXe.
     $mod = new ModeliXe("FichePatient.mxt");
     $mod->SetModeliXe();
     //    eko ( "ça fonctionne" ) ;
     // Modification identité
     if ($session->getNavi(3) == "modPatient") {
         $modP = $this->modPatient();
     }
     // Appel
     if (($_REQUEST['act_print'] or $_REQUEST['act_print_x']) and $_REQUEST['Formulaire2print']) {
         // eko ( "Impression du formulaire blablabla" ) ;
         $t = new clDemandeBons($this->patient->getIDU(), $this->patient->getNsej());
     }
     //eko ( $_REQUEST ) ;
     // Initialisation des différents éléments du template.
     if ($session->getDroit($this->type . "_EtatCivil", "r")) {
         $mod->MxText("etatcivil", $modP . $this->EtatCivil());
     }
     if ($session->getDroit($this->type . "_Transfert", "r")) {
         $mod->MxText("transfert", $this->Transfert());
     }
     if ($options->getOption("ModuleBMR")) {
         $mod->MxText("bmr", $this->VerifBMR());
     }
     if ($session->getDroit($this->type . "_Informations", "r")) {
         $mod->MxText("informations", $this->Informations());
     }
     if (($options->getOption("ModuleHistorique") == "ProvenanceHistorique" || $options->getOption("ProvenanceHistorique") == "as400") && $session->getDroit($this->type . "_Historique", "r")) {
         //eko('pipoun');
         $mod->MxText("historique", $this->Historique());
         $mod->MxText("historiquedocs", "");
     } else {
         if ($options->getOption("ModuleHistorique") == "Oracle" && $session->getDroit($this->type . "_Historique", "r")) {
             $mod->MxText("historique", $this->Historique());
             $mod->MxText("historiquedocs", $this->HistoriqueDocs());
         } elseif ($options->getOption("ModuleHistorique") == "Urgences" && $session->getDroit($this->type . "_Historique", "r")) {
             $mod->MxText("historique", $this->HistoriqueUrgences());
             $mod->MxText("historiquedocs", "");
         } elseif ($options->getOption("ModuleHistorique") == "OracleHisto" && $session->getDroit($this->type . "_Historique", "r")) {
             $mod->MxText("historique", $this->Historique());
             $mod->MxText("historiquedocs", "");
         } else {
             $mod->MxText("historique", "");
             $mod->MxText("historiquedocs", "");
         }
     }
     //$mod -> MxText ( "historique", XhamTools::genFenetreBloquante ( 'test.html' ) ) ;
     if ($session->getDroit($this->type . "_Messages", "r")) {
         $mod->MxText("messages", $this->Messages());
     }
     if ($options->getOption('ModuleDocuments') and $session->getDroit($this->type . "_Documents", "r")) {
         $mod->MxText("documents", $this->Documents());
     }
     if ($options->getOption("ActivationAppels")) {
         $ac = new XhamBluePig($this->patient->getIDU(), $this->patient->getILP(), $this->patient->getNsej(), $this->patient->getUF());
         $ac->genBarre();
         $mod->MxText("appelsContextuels", $ac->getAffichage());
     }
     ////////////////////////// CCAM /////////////////////////////
     // Invocation du module de cotation des actes CCAM
     /*
     if (($_POST['DetailDiagsActes_x'] or $session->getNavi(3)=="DetailDiagsActes") AND $options->getOption('CCAMExterne')) {
     	$bloq = XhamTools::genFenetreBloquante ( "CCAM_SaisieExterne.mxt" ) ;
     } else $bloq = '' ;
     */
     $bloq = '';
     $this->defineParamCCAM();
     if ($options->getOption("Module_CCAM") and ($session->getDroit("CCAM_ACTES_" . $this->type, "r") or $session->getDroit("CCAM_CONSULT_" . $this->type, "r")) and $this->patient->getDateExamen() != "0000-00-00 00:00:00" and $this->patient->getMatriculeMedecin() or $options->getOption("Module_CCAM") and ($session->getDroit("CCAM_ACTES_" . $this->type, "r") or $session->getDroit("CCAM_CONSULT_" . $this->type, "r")) and $this->patient->getEtatPatient() == 'Sortis') {
         $cotationActes = new clCCAMCotationActesDiags($this->paramCCAM);
         $mod->MxText("cotationCCAM", $cotationActes->cotationActes() . $bloq);
         //tweak : cervetti
         //si sortie de ccam détectée, redirection vers une url saine qui ne se cumule pas le "ccam" en navi3 (bugogène )
         //je le fais ici pour éviter de modifier la classe cacam
         if (isset($_POST['lesion']) && isset($_POST['sortir_x']) || isset($_POST['listeGauche']) && isset($_POST['sortir_x'])) {
             $saneNavi = $session->genNavi($session->getNavi(0), $session->getNavi(1), $session->getNavi(2));
             header('Location: ' . URLNAVI . $saneNavi);
             die;
         }
     }
     //////////////////////// FIN CCAM ///////////////////////////
     if ($_POST['sendMessage']) {
         $_POST['type'] = "virus";
         $_POST['Envoyer'] = 1;
         $this->newMessage('Mails Alerte Virus');
     }
     $mod->MxText("blocnote", $this->mainCourante());
     $pedi = $options->getOption("FiltreSalleSup");
     //eko ( $pedi ) ;
     if ($this->type != 'Sortis' and !ereg($pedi, $this->patient->getSalle())) {
         $mod->MxText("uhcd", $this->genUHCD());
     }
     $iframe = array('', '', '', '', '', '', '', '', '', '');
     for ($i = 1; $i < 10; $i++) {
         switch ($options->getOption("Iframe" . $i . "_Position")) {
             case 'Av-H':
                 $iframe[1] .= $this->genIframe($i);
                 break;
             case 'Ap-H':
                 $iframe[2] .= $this->genIframe($i);
                 break;
             case 'Av-D':
                 $iframe[3] .= $this->genIframe($i);
                 break;
             case 'Ap-D':
                 $iframe[4] .= $this->genIframe($i);
                 break;
             case 'Av-A':
                 $iframe[5] .= $this->genIframe($i);
                 break;
             case 'Ap-A':
                 $iframe[6] .= $this->genIframe($i);
                 break;
             case 'Av-B':
                 $iframe[7] .= $this->genIframe($i);
                 break;
             case 'Ap-B':
                 $iframe[8] .= $this->genIframe($i);
                 break;
             case 'Ap':
                 $iframe[9] .= $this->genIframe($i);
                 break;
             default:
                 $iframe[0] .= $this->genIframe($i);
                 break;
         }
     }
     $mod->MxText("iframe1", $iframe[1]);
     $mod->MxText("iframe2", $iframe[2]);
     $mod->MxText("iframe3", $iframe[3]);
     $mod->MxText("iframe4", $iframe[4]);
     $mod->MxText("iframe5", $iframe[5]);
     $mod->MxText("iframe6", $iframe[6]);
     $mod->MxText("iframe7", $iframe[7]);
     $mod->MxText("iframe8", $iframe[8]);
     $mod->MxText("iframe9", $iframe[9]);
     $mod->MxText("iframe", $iframe[0]);
     $mod->MxText("formx", $this->genBlocFormx());
     global $fenetreBloquante;
     if ($fenetreBloquante) {
         $mod->MxText("fenetreBloquante", $fenetreBloquante);
     }
     // Récupération du code HTML généré.
     $this->af .= $mod->MxWrite("1");
 }