Yep I had to take mine just after 30weeks and we needed a certificate for anything longer than 1 day off sick.
I also had to be careful the doctor didn't write due to pregnancy - it had to be specific, ie high blood pressure risk of abruption, hip pain etc otherwise the powers that be made you take your mat leave early instead.