A gastrojejunostomy is a surgical procedure that directly connects the stomach to the jejunum, the second section of the small intestine, by a small tube. The tube allows food, liquids, and medications to bypass the duodenum, the first section of the small intestine.