Gastroenterology is a medical field that focuses on the digestive system, which includes the stomach, intestines, liver, and pancreas. Gastroenterologists diagnose and treat problems related to digestion, such as stomach pain, heartburn, diarrhea, and liver disease.