i've had to time my rem cycles. if i am in bed in the middle of a rem cycle, when i should sleep, and i'm awake, i'm fucked. if i go to bed right at the start, i can fall asleep.
i require sleepy meds tho, so YMMV. hospitals can really fuck over your circadian rhythms.