$smarty->assign("daily_check_lists", $daily_check_lists); $smarty->assign("daily_check_list_types", $daily_check_list_types); $smarty->display("inc_operation.tpl"); CApp::rip(); } } // Pre-anesth, pre-op, post-op // Don't load them if we have a daily check list to fill... $operation_check_lists = $operation_check_item_categories = array(); $check_lists_no_has = $check_items_no_has_categories = $listValidateurs_no_has = array(); $listAnesthType = array(); if ($selOp->_id) { $selOp->canDo(); $selOp->loadRefs(); $selOp->loadRefsFiles(); $selOp->loadRefsDocs(); $consult_anesth = $selOp->loadRefsConsultAnesth(); $consult_anesth->countDocItems(); $consultation = $consult_anesth->loadRefConsultation(); $consultation->countDocItems(); $consultation->canRead(); $consultation->canEdit(); $selOp->loadRefPlageOp(true); $selOp->loadRefChir()->loadRefFunction(); $selOp->loadRefPatient(); $selOp->loadRefCommande(); $date = CMbDT::date($selOp->_datetime); // Récupération de l'utilisateur courant $currUser = CMediusers::get(); $currUser->isAnesth(); $currUser->isPraticien();