Some coughs which are caused by virus can last up to a month. Suggest that you go back to the gp again and see if you really need antibiotics as antibiotics is for bacterial infection and not viral. As you're quite close to edd best not to let your body fight by itself as prolonged coughing may cause early contractions
if advised by doctor