Lower limb function as predictor of falls and loss of mobility with social repercussions one year after discharge among elderly inpatients