If any kind of pain lasts more than two weeks (long-term bloating, vomiting, diarrhea, blood in the stool, etc) you should consult with your doctor for a full diagnosis. The location, chronology, severity, aggravating and alleviating factors, and associated symptoms helps your health practitioner assess the exact diagnosis.