if (!$canAccess) { 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 {
} $canUnlockActes = $module == "dPpmsi" || CModule::getCanDo("dPsalleOp")->admin; if (null == ($object_class = CValue::get("object_class"))) { CAppUI::stepMessage(UI_MSG_WARNING, "{$tab}-msg-mode-missing"); return; } $unlock_dossier = CValue::get("unlock_dossier", 0); $NDA = ""; $IPP = ""; switch ($object_class) { case "COperation": $object = new COperation(); // Chargement de l'opération et génération du document $operation_id = CValue::post("mb_operation_id", CValue::getOrSession("object_id")); if ($object->load($operation_id)) { $object->loadRefs(); $codes = explode("|", $object->codes_ccam); $actes = CMbArray::pluck($object->_ref_actes_ccam, "code_acte"); foreach ($object->_ref_actes_ccam as $acte_ccam) { $acte_ccam->loadRefsFwd(); } // Suppression des actes non codés if (CAppUI::conf("dPsalleOp CActeCCAM del_actes_non_cotes")) { foreach ($codes as $_key => $_code) { $key = array_search($_code, $actes); if ($key === false) { unset($codes[$_key]); } } } $object->_codes_ccam = $codes;
<?php /** * $Id:$ * * @package Mediboard * @subpackage bloodSalvage * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision:$ */ CAppUI::requireModuleFile("bloodSalvage", "inc_personnel"); $selOp = new COperation(); $blood_salvage = new CBloodSalvage(); $date = CValue::getOrSession("date", CMbDT::date()); $op = CValue::getOrSession("op"); if ($op) { $selOp->load($op); $selOp->loadRefs(); $where = array(); $where["operation_id"] = "='{$selOp->_id}'"; $blood_salvage->loadObject($where); $blood_salvage->loadRefsFwd(); $blood_salvage->loadRefPlageOp(); } $smarty = new CSmartyDP(); $smarty->assign("date", $date); $smarty->assign("blood_salvage", $blood_salvage); $smarty->assign("selOp", $selOp); $smarty->display("vw_bloodSalvage_sspi.tpl");
<?php /** * $Id$ * * @package Mediboard * @subpackage SalleOp * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ $operation_id = CValue::getOrSession("operation_id", 0); $operation = new COperation(); $operation->load($operation_id); $operation->loadRefs(); $operation->countExchanges(); $operation->isCoded(); $operation->canDo(); $operation->_ref_sejour->loadRefsFwd(); foreach ($operation->_ext_codes_ccam as $key => $value) { $operation->_ext_codes_ccam[$key] = CDatedCodeCCAM::get($value->code); } $operation->getAssociationCodesActes(); $operation->loadPossibleActes(); $operation->_ref_plageop->loadRefsFwd(); $operation->loadRefPraticien(); if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) { // Chargement des règles de codage $operation->loadRefsCodagesCCAM(); foreach ($operation->_ref_codages_ccam as $_codages_by_prat) { foreach ($_codages_by_prat as $_codage) {