<?php

/**
 * $Id$
 *  
 * @category Cabinet
 * @package  Mediboard
 * @author   SARL OpenXtrem <*****@*****.**>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  $Revision$
 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
$dossier_anesth_id = CValue::get("dossier_anesth_id");
$consult_anesth = new CConsultAnesth();
$consult_anesth->load($dossier_anesth_id);
$consult = $consult_anesth->loadRefConsultation();
$smarty = new CSmartyDP();
$smarty->assign("consult", $consult);
$smarty->assign("consult_anesth", $consult_anesth);
$smarty->display("inc_consult_anesth/acc_examens_clinique.tpl");
            $consultation->loadRefPlageConsult();
            $_dossier_anesth->loadRefOperation();
        }
    }
    $onSubmit = "return onSubmitFormAjax(this,\r\n    window.refreshFicheAnesth ||\r\n    function(){\r\n      window.opener.chooseAnesthCallback.defer(); window.close();\r\n    }\r\n  )";
    $smarty = new CSmartyDP("modules/dPcabinet");
    $smarty->assign("selOp", $selOp);
    $smarty->assign("patient", $patient);
    $smarty->assign("listAnesths", $listAnesths);
    $smarty->assign("onSubmit", $onSubmit);
    $smarty->assign("create_dossier_anesth", $create_dossier_anesth);
    $smarty->display("inc_choose_dossier_anesth.tpl");
    return;
}
$dossier_anesth->loadRefsDocs();
$consult = $dossier_anesth->loadRefConsultation();
$consult->loadRefPlageConsult();
if ($pdf) {
    // Si le modèle est redéfini, on l'utilise
    $model = CCompteRendu::getSpecialModel($consult->_ref_chir, "CConsultAnesth", "[FICHE ANESTH]");
    if ($model->_id) {
        CCompteRendu::streamDocForObject($model, $dossier_anesth, $model->factory);
    }
}
$consult->loadRefsFwd();
$consult->loadRefsDossiersAnesth();
$consult->loadRefsExamsComp();
$consult->loadRefsExamNyha();
$consult->loadRefsExamPossum();
$dossier_anesth->loadRefs();
$dossier_anesth->_ref_sejour->loadRefDossierMedical();
Exemple #3
0
 /**
  * @see parent::loadComplete()
  */
 function loadComplete()
 {
     parent::loadComplete();
     // Chek if operations were loaded yet (cf ExObjects)
     $operations = $this->_ref_operations;
     if ($operations === null) {
         $operations = $this->loadRefsOperations();
     }
     foreach ($operations as $operation) {
         $operation->loadRefsFwd();
         $operation->loadBrancardage();
         $operation->_ref_chir->loadRefFunction();
         $operation->_ref_chir->loadRefSpecCPAM();
         $operation->_ref_chir->loadRefDiscipline();
     }
     foreach ($this->_ref_affectations as $affectation) {
         $affectation->loadRefLit();
         $affectation->_ref_lit->loadCompleteView();
     }
     if ($this->_ref_actes_ccam) {
         foreach ($this->_ref_actes_ccam as $acte_ccam) {
             $acte_ccam->loadRefsFwd();
         }
     }
     $this->loadExtDiagnostics();
     // Chargement du RPU dans le cas des urgences
     $this->loadRefRPU();
     if ($this->_ref_rpu) {
         $this->_ref_rpu->loadRefSejour();
     }
     $this->loadNDA();
     // Chargement de la consultation anesth pour l'affichage de la fiche d'anesthesie
     $this->loadRefsConsultAnesth();
     $this->_ref_consult_anesth->loadRefConsultation();
     $this->loadSuiviMedical();
     $this->_ref_patient->loadRefPhotoIdentite();
 }