} else {
            $array_highlights[] = "";
        }
    }
    // traitement des auteurs
    foreach ($author_ids as $author) {
        $authors[$author] = CMbObject::loadFromGuid("CMediusers-{$author}");
        $authors[$author]->loadRefFunction();
    }
    // traitement des patients
    foreach ($patient_ids as $_patient) {
        $patients[$_patient] = CMbObject::loadFromGuid("CPatient-{$_patient}");
    }
    //traitement des contextes référents si aggregation est cochée
    if ($aggregate) {
        $objects_refs = $client_index->loadAggregationObject($results_query->getAggregations("ref_class"));
    }
} catch (Exception $e) {
    CAppUI::displayAjaxMsg("La requête est mal formée", UI_MSG_ERROR);
    mbLog($e->getMessage());
}
$rss_items = array();
$items = array();
if ($contexte == "pmsi" && CModule::getActive("atih")) {
    $rss = new CRSS();
    $rss->sejour_id = $sejour_id;
    $rss->loadMatchingObject();
    $rss_items = $rss->loadRefsSearchItems();
    foreach ($rss_items as $_items) {
        $items[] = $_items->search_class . "-" . $_items->search_id;
    }