If there’s warning that someone is going to die, they’re usually moved to a special room by themselves for palliative care. There’s usually clues that someone is going, such as Cheyne-Stokes breathing, which is how they know to contact friends and relatives who want to be there for the final moments. When someone dies in hospital, they have a set procedure they use. Usually what happens is a nurse will unobtrusively close everyone’s doors and clear the hallways before the body is brought out. In fact, sometimes they hide the body under a gurney so no one will see what’s going on if they happen to be walking down a hallway at the time.