Palliative care
This care may happen in the person's own home, a hospital or a hospice. In the United States, hospice treatment is a benefit provided by the federal government since 1982.  In other countries a hospice is a specialized service often from a charity.   Even in the richest countries only a minority of people get any palliative care.