A gastroenterologist is a medical doctor who specializes in the diagnosis and treatment of conditions related to the digestive system, which includes the esophagus, stomach, small intestine, colon, rectum, pancreas, gallbladder, and liver. They perform procedures such as endoscopies, colonoscopies, and other tests to diagnose and treat digestive system disorders.