// Si le service en session n'est pas dans l'etablissement courant if (CGroups::loadCurrent()->_id != $service->group_id) { $service_id = ""; $service = new CService(); } $date = CValue::getOrSession("debut"); $prescription_id = CValue::get("prescription_id"); // Chargement des configs de services if (!$service_id) { $service_id = "none"; } $configs = CConfigService::getAllFor($service_id); if (!$date) { $date = CMbDT::date(); } $categories = CPrescription::getCategoriesForPeriod($service_id, $date, $real_time); if (!count($categories_id_pancarte)) { $categories_id_pancarte = array("med"); foreach ($categories as $_categorie) { foreach ($_categorie as $_elts) { $categories_id_pancarte = array_merge($categories_id_pancarte, array_keys($_elts)); } } } $filter_line = new CPrescriptionLineMedicament(); $filter_line->debut = $date; // Récupération de la liste des services $where = array(); $where["externe"] = "= '0'"; $where["cancelled"] = "= '0'"; $service = new CService();