Help! Can't stop coughing.

Brittany
I'm 37 weeks pregnant and have had a cough for almost 3 weeks that I can't seem to get rid of. Medicine is not helping it go away at all and now I'm loosing sleep and in a lot of pain from not being able to quit. Does anyone know a way I can get rid of this?