I had a shocking case of gastro when I was about 32 weeks
PG and was almost admitted and put on a drip.
You should go to the Dr to be on the safe side. Especially if you've got it coming from both ends. You can dehydrate very easily if you can't at least keep water down.