Both gastroenterologists and GI surgeons diagnose and treat conditions affecting the digestive system. Gastroenterologists are trained in internal medicine and receive additional training in problems of the digestive system. They treat GI conditions medically (such as with medicines) and perform nonsurgical procedures, such as colonoscopies.