Functional trajectories during hospitalization: a prognostic sign for elderly patients.