he managed to make it about a quarter of the way into a sitting position before a nurse realized what he was doing , arriving in time to stop him from collapsing back onto the clinic bed he was occupying .