Exam while in hospital


I've found myself in a really unfortunate position with my uni degree. A few days after my surgery next month I'm set to sit an online take home essay exam. Thankfully its 1. online 2. take home which means its open for 48hrs. But I am really unsure how I'll feel on those days and I cant do it later because I'd have to wait till end of S3 and applications to change programs are before then. So I have to find a way to make this work. I spose I wanted to vent a little at the unluckiest of it all and see if anyone has tips for how to sit exams while in general ward? I'll be using a laptop and have friends and family to help me too