Health and functional status in elderly patients living in nursing homes