} $favoris = new CSearchThesaurusEntry(); $favoris_sans_cibles = new CSearchThesaurusEntry(); $targets = new CSearchTargetEntry(); $actes_ccam = array(); $diags_cim = array(); $results = array(); $tab_favoris = array(); $date = CMbDT::date("-1 month"); $types = array(); $group = CGroups::loadCurrent(); if (CAppUI::conf("search active_handler active_handler_search_types", $group)) { $types = explode("|", CAppUI::conf("search active_handler active_handler_search_types", $group)); } $test_search = new CSearch(); $test_search->testConnection($group); // On récupère les favoris if ($_ref_object instanceof CSejour) { $date = CMbDT::format($_ref_object->entree_reelle, "%Y-%m-%d"); /** @var $_ref_object CSejour */ // actes CCAM du séjour foreach ($_ref_object->loadRefsActesCCAM() as $_ccam) { $diags_actes[] = $_ccam->code_acte; } // actes CCAM du l'intervention foreach ($_ref_object->loadRefsOperations() as $_op) { foreach ($_op->loadRefsActesCCAM() as $_ccam) { $diags_actes[] = $_ccam->code_acte; } } if ($_ref_object->DP || $_ref_object->DR) {