A gastroenterologist is a medical specialist focused on diagnosing, managing, and treating disorders of the gastrointestinal (GI) tract. This includes the esophagus, stomach, intestines, liver, pancreas, and gallbladder. Their expertise is particularly crucial in identifying and treating cancers that affect these organs.