Hi im 39 weeks pregnant i have cramps and yellow

Patient: Hi im 39 weeks pregnant i have cramps and yellow stuff comes out it has a bad odor , is this normal ?

Doctor: