I lost my grandfather a little over five years ago. He was in and out of the hospital a lot during his last years over heart and diabetic complications.
Even though he wasn't a very smart person, he was modest and very friendly with everybody. Although we were not super close, I knew his love for his family was above everything else.
My advice would be to remember the best times and to talk about any feelings you have about this difficult time with a confidant.
I'm sorry for what you're going through anon.