This doesn't happen in the hospital I work in, some rooms are simply not designed in a way that the beds could be turned. From my understanding there is some sort of ritual that can be performed to allow bed ridden patients to pray, although I'm not actually sure what this involves.