When to see a doctor If you experience severe stomach pain or vomiting, or if any symptom such as constipation or diarrhea lasts more than three days and/or is accompanied by weight loss or gain, you could have irritable bowel syndrome (IBS) or celiac disease, a disorder in which the lining of the small intestine becomes inflamed from foods that contain gluten, such as bread and other wheat produc