if (!$op->canDo()->read) { global $m, $tab; CAppUI::setMsg("Vous n'avez pas accés à cette intervention hors plage", UI_MSG_WARNING); CAppUI::redirect("m={$m}&tab={$tab}&operation_id=0"); } } } else { if (!$op->canDo()->read) { global $m, $tab; CAppUI::setMsg("Vous n'avez pas accés à cette intervention hors plage", UI_MSG_WARNING); CAppUI::redirect("m={$m}&tab={$tab}&operation_id=0"); } } // Chargement des régérences $op->loadRefs(); $op->loadRefsNotes(); $op->_ref_chir->loadRefFunction(); $op->loadRefs(); foreach ($op->_ref_actes_ccam as $acte) { $acte->loadRefExecutant(); } $sejour = $op->_ref_sejour; $sejour->loadRefsFwd(); $sejour->loadRefCurrAffectation()->loadRefService(); $sejour->_ref_praticien->canDo(); $sejour->makeCancelAlerts($op->_id); $chir = $op->_ref_chir; $patient = $sejour->_ref_patient; $prat = $sejour->_ref_praticien; } else { if ($hour_urgence && isset($min_urgence)) {