} elseif ($_trans_const instanceof CConsultation) { // On n'affiche pas les consultations annulées if ($_trans_const->annule) { unset($sejour->_ref_suivi_medical[$_key]); continue; } if ($forms_active) { foreach ($_trans_const->_refs_dossiers_anesth as $key => $_dossier_anesth) { $_dossier_anesth->loadRefOperation(); } if ($_trans_const->type == "entree") { $has_obs_entree = 1; } $forms = CExObject::loadExObjectsFor($_trans_const); foreach ($_trans_const->_refs_dossiers_anesth as $_dossier_anesth) { $_forms = CExObject::loadExObjectsFor($_dossier_anesth); $forms += $_forms; } $_trans_const->_list_forms = $forms; } $list_trans_const[$_trans_const->_datetime] = $_trans_const; } elseif ($_trans_const instanceof CPrescriptionLineElement || $_trans_const instanceof CPrescriptionLineComment) { $list_trans_const["{$_trans_const->debut} {$_trans_const->time_debut}"] = $_trans_const; $_trans_const->loadRefPraticien(); continue; } elseif (is_array($_trans_const)) { $list_trans_const[$_key] = $_trans_const; } elseif ($_trans_const instanceof CObservationMedicale) { $sort_key = "{$_trans_const->date} {$_trans_const->_guid}"; $list_trans_const[$sort_key] = $_trans_const; } else {