$anticoagulant_list = $anticoagulant->_ref_produits; } } else { $list = CAppUI::conf("bloodSalvage AntiCoagulantList"); $anticoagulant_list = explode("|", $list); } $selOp = new COperation(); if ($op) { $selOp->load($op); $selOp->loadRefsConsultAnesth(); $selOp->loadRefSejour()->loadRefPatient(); $selOp->_ref_sejour->_ref_patient->loadRefDossierMedical(); $selOp->_ref_sejour->_ref_patient->loadRefLatestConstantes(); $blood_salvage = new CBloodSalvage(); $blood_salvage->operation_id = $op; $blood_salvage->loadMatchingObject(); $timing["_recuperation_start"] = array(); $max_add_minutes = CAppUI::conf("dPsalleOp max_add_minutes"); foreach ($timing as $key => $value) { for ($i = -CAppUI::conf("dPsalleOp max_sub_minutes"); $i < $max_add_minutes && $blood_salvage->{$key} !== null; $i++) { $timing[$key][] = CMbDT::time("{$i} minutes", $blood_salvage->{$key}); } } } /* * Liste des cell saver. */ $cell_saver = new CCellSaver(); $list_cell_saver = $cell_saver->loadList(); $smarty = new CSmartyDP(); $smarty->assign("blood_salvage", $blood_salvage);