I'm very sorry about your friend but never lose hope.
Last summer my aunt was in the hospital, her organs were shutting down, she was in ICU, they couldn't figure out what was wrong, they suspected cancer but said she'd never survive the surgery to take a biopsy. The doctor told us to make her final arrangements. We all sat around in shock (she is only 50 years old and still had young children to take care of) We called funeral homes and made her arrangements, the doctors gave her a week.
Today she is alive, healthy and home taking care of her young boys.
You just never know.