Profile of elderly people with cognitive alterations in different contexts of social vulnerability