A gastroenterologist is a medical doctor who specializes in conditions affecting your digestive system. Gastroenterologists begin as general physicians. They complete three years of medical residency after medical school, treating all kinds of diseases and conditions.