The study of the structure and function of the digestive system, including the stomach, intestines, and associated organs.