Herself is an occupational therapist who does this regularly. As has already been said very well by others, get involved early with the people at the hospital. Make sure that they do a home evaluation (what Jenn does) well before she is ready for release, and be prepared for a report that she cannot return home without 24x7 professional in-home care. You then need to make that terrible decision between what she wants to do and what is best for her, realizing that the nurturing relationships between you have been reversed. You may need to go so far as to have a mental health assessment done and be declared her legal guardian. Your real choice may be between placing her in a nursing care or assisted living facility of some kind or bringing her into your own home for whatever time she has left.
Jenn and her sister faced this choice some ten years or so ago when their mother could not longer live alone. Their decision was not easy, but it had to be made.