I hear you. So very sad, isn't it?
I can empathise with your feelings, and I know how troubling they are.
This is something only WE can change. We must put the world of work on hold at times like these... and make ourselves STOP. Everything else will still be there.. the paperwork, the charting, the other patients demandidng this or that.
But the dying patient WON'T be.
He deserves the moment.. no matter how brief. He deserves to be looked in the eye and made to feel his life, now rapidly expiring, is valued. He deserves the touch of the hand, and the family deserves the tenderness and compassion of the spoken word. Everything else can wait... for it will still be there after you have given a dying man the respect and acknowledgement he deserves.
The way you feel now will move you to do what you wanted to do this time, NEXT time. It is from reliving these moments that we find where we could have done better.
Thank you for caring enough to have been bothered by it. That is the first step in the right direction.