OP still said it's medical though. (Good) GPs will happily write you a note for this even if you're technically still able to go - I've done this before, twice, with absolutely no issues, and both times I had nothing more than some sniffles and stress.