Gastroenterologists diagnose and treat digestive system illnesses such as stomach pain, ulcers, acid reflux, diarrhea, constipation, and other related conditions.