There is a form of hospice care for patients who don’t want any further treatment of their terminal illness (but need pain meds, etc) where the nurses will come to your house. So that can be longer term.
A friends RN wife does that now for Guardian Angels