You can't live in a nursing home because of some diseases that affect others, such as mental illness and infectious diseases. This is also for the sake of the life and health of other elderly people, because the nursing home itself is a social institution, and the elderly are vulnerable groups and prone to accidents.
It depends on the limitations of each nursing home. Some nursing homes can only accept elderly people who can take care of themselves because of imperfect medical facilities, while some nursing homes have complete medical facilities and perfect service system, and can accept elderly people who can take care of themselves, cannot take care of themselves and are mentally disabled. Some are even worse, such as Lingnan Health Valley Nursing Home, which specializes in treating chronic diseases and conditioning with Chinese medicine characteristics.