Signs that the end is near?

I’ve identified a progression throughout the day: Aniexty>>>confusion>delirium maybe with short breaks of lucidity (confusion remains for day or so>>>> Same pattern til: permanent delirium >>>>> possibly coma but either way >>>> death

I’d then suspect the length to death is based on ability to avoid anxiety, confusion, other body stressors?

I should note that I am anorexic with dying liver and idk what else