Try and get your doctor to give you a certificate to say you are fit to work up until 2wks before you are due. Speak to the union as well. They weill be able to help you understand your rights