A gastroenterologist is a medical specialist who diagnoses and treats conditions of the digestive system, including the stomach, intestines, liver, pancreas, and gallbladder.