Esophagus cancer

My mum has terminal esophagus cancer she can no longer eat as she is constantly being sick she is bedbound is very confused how do i know if she is coming to the end of life