* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ CCanDo::checkRead(); $salle = CValue::getOrSession("salle"); $op = CValue::getOrSession("op"); $date = CValue::getOrSession("date", CMbDT::date()); $modif_operation = CCanDo::edit() || $date >= CMbDT::date(); $timing = array(); $inLivretTherapeutique = CAppUI::conf("bloodSalvage inLivretTherapeutique"); if (CModule::getActive("dPmedicament")) { $anticoagulant = new CBcbClasseATC(); if ($inLivretTherapeutique) { $anticoagulant_list = $anticoagulant->loadRefProduitsLivret("B01AB"); } else { $anticoagulant->loadRefsProduits("B01AB"); $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;