Need some tmi advice-lol

Cheyenne
I'm 39 weeks pregnant today, haven't been feeling sick or been sick recently, but today I had two regular bms, then about an hr ago threw up probably everything I ate in the last few hours and moments later got diarrhea probably enough for the last few days, I have heard the body cleans itself out hours or days before labor, could this be why I got so sick? Any in site would be great, ftm and want to be prepared as possible.