33 weeks pregnant day 6 of diarrhea

So day six of having diarrhea I'm not I'll with it just can't stop going for a number 2. Do I need to ring midwife is there anything I can take to stop it ?