The upper gastrointestinal tract consists of the esophagus, stomach, and duodenum. The lower gastrointestinal tract includes the small intestine and the large intestine. Digestive juices are produced by the pancreas and the gallbladder. The small intestine includes the duodenum, jejunum, and ileum.