Articles & Guides › Articles › Gastroenterology & Nutrition
GI development and congenital anomalies
How the primitive gut is divided and supplied, how the midgut herniates and rotates, and how faults in those steps cause malrotation, abdominal wall defects, atresias, pyloric stenosis, annular pancreas, Meckel diverticulum and Hirschsprung disease.
Gastroenterology & Nutrition · 7 min read · Reviewed 2026-11-10
The gut begins as a simple tube that lengthens, divides into three regions with their own arteries, loops out into the umbilical cord, rotates, returns, and is colonized by migrating nerve cells. Most congenital GI anomalies are one of these steps going wrong. Two questions narrow the cause quickly in a vomiting baby: how old is the baby, and is the vomit green? Green (bilious) vomit means the blockage is below the ampulla of Vater, where bile enters the duodenum.
Key points
- The foregut is supplied by the celiac trunk, the midgut by the superior mesenteric artery (SMA) and the hindgut by the inferior mesenteric artery (IMA).
- The midgut herniates into the cord in week 6, rotates 270 degrees counterclockwise around the SMA and returns by week 10. Malrotation can twist into midgut volvulus, a surgical emergency.
- Gastroschisis is uncovered and to the right of the cord; omphalocele is covered, central and linked to chromosomal disorders.
- Duodenal atresia (failed recanalization) causes bilious vomiting from birth and a "double bubble"; pyloric stenosis causes projectile, nonbilious vomiting at 2–8 weeks.
- Meckel diverticulum is a vitelline duct remnant that bleeds painlessly; Hirschsprung disease is failed neural crest migration that leaves the rectum without ganglion cells.
Foregut, midgut and hindgut, and gut rotation
Three regions, three arteries
The primitive gut is divided by its blood supply, and that division persists into adult anatomy[1].
| Region | Artery | Adult structures |
|---|---|---|
| Foregut | Celiac trunk | Esophagus, stomach, duodenum to the ampulla, liver, gallbladder, pancreas |
| Midgut | SMA | Duodenum beyond the ampulla, jejunum, ileum, cecum, appendix, ascending colon, proximal two-thirds of the transverse colon |
| Hindgut | IMA | Distal third of the transverse colon, descending and sigmoid colon, rectum, anal canal above the pectinate line |
Visceral pain is felt in the midline: foregut pain in the epigastrium, midgut pain around the umbilicus and hindgut pain above the pubis. This is why early appendicitis hurts around the navel.
Herniation and rotation
The midgut grows faster than the abdomen can hold it. In week 6 it loops out into the umbilical cord (physiologic herniation). While outside, it rotates 270 degrees counterclockwise around the axis of the SMA, then returns to the abdomen by week 10[1]. Normal rotation leaves the duodenojejunal junction to the left of the spine and the cecum in the right lower quadrant, with a broad mesentery anchoring the small bowel.
Malrotation and midgut volvulus
If rotation is incomplete, the cecum stays high in the upper abdomen, tethered by fibrous Ladd bands that cross and compress the duodenum. Worse, the small bowel hangs from a narrow mesenteric base and can twist around it: midgut volvulus. The twist cuts off the SMA and can infarct the whole midgut within hours[2]. The typical picture is sudden bilious vomiting in a previously well baby. On an upper GI contrast series, the duodenojejunal junction lies abnormally on the right, and a twisted duodenum looks like a corkscrew. Bilious vomiting in a newborn should be treated as volvulus until proven otherwise; surgery is the Ladd procedure.
The pancreas
The pancreas forms from two buds. The ventral bud rotates around the duodenum and forms the uncinate process and part of the head and main duct; the dorsal bud forms the rest of the head, body and tail. If the two duct systems fail to fuse, the result is pancreas divisum, a common variant that can predispose to pancreatitis.
Abdominal wall defects
The two main defects look alike on prenatal ultrasound, since both raise maternal serum alpha-fetoprotein, but they arise differently and carry different risks[3].
| Feature | Gastroschisis | Omphalocele |
|---|---|---|
| Mechanism | A full-thickness defect in the abdominal wall; bowel spills out | The midgut fails to return after physiologic herniation |
| Position | Right of the umbilical cord | Central, at the base of the cord |
| Covering | None; bowel is thickened and matted from contact with amniotic fluid | A sac of peritoneum and amnion |
| Contents | Mostly bowel | Bowel, sometimes liver |
| Associations | Young mothers, smoking; usually isolated, though intestinal atresia can occur | Trisomy 13 and 18, Beckwith-Wiedemann syndrome, heart defects |
An omphalocele therefore calls for a karyotype and an echocardiogram, because it is often part of a wider syndrome.
An umbilical hernia is skin-covered, common in infants (more so with hypothyroidism and Down syndrome) and usually closes on its own.
Tracheoesophageal fistula, atresias, pyloric stenosis and annular pancreas
Esophageal atresia and tracheoesophageal fistula
The foregut is split into the trachea in front and the esophagus behind by the tracheoesophageal septum. Errors leave the esophagus blind-ending (atresia), connected to the trachea (fistula), or both[4].
| Type | What happens |
|---|---|
| Atresia with a distal fistula (about 85%) | Blind upper pouch; the lower esophagus joins the trachea. Drooling, choking and cyanosis with feeds; a feeding tube coils in the pouch; air in the stomach because it enters through the fistula |
| Pure atresia | No connection to the stomach, so the abdomen is gasless |
| H-type fistula without atresia | Coughing with feeds and recurrent pneumonia; often diagnosed later |
Because the fetus cannot swallow amniotic fluid, polyhydramnios is common. Look for the VACTERL association: vertebral, anal, cardiac, tracheoesophageal, renal and limb (especially radial) anomalies.
Intestinal atresias
The duodenal lumen is temporarily filled with epithelium during weeks 5 to 8 and must then recanalize. Failure gives duodenal atresia: bilious vomiting from the first day, polyhydramnios, and a "double bubble" of gas in the stomach and proximal duodenum with no gas beyond. It is strongly associated with Down syndrome[1]. Jejunal and ileal atresias have a different cause, a vascular accident in utero that kills a segment of bowel.
Hypertrophic pyloric stenosis
Here the pyloric muscle thickens after birth. Symptoms begin at 2 to 8 weeks, most often in firstborn boys, and the risk rises with macrolide exposure in early infancy[5]. Because the block is above the ampulla, the vomiting is projectile and nonbilious, and the baby is hungry straight afterward. A firm "olive" may be felt in the upper abdomen.
The lab picture follows from losing stomach acid: hypochloremic, hypokalemic metabolic alkalosis. As volume falls, aldosterone rises and the kidney holds sodium at the cost of hydrogen and potassium, producing "paradoxical" acidic urine. Ultrasound confirms a thick, long pylorus; fluids and electrolytes are corrected first, then a pyloromyotomy is done.
Annular pancreas
If the ventral bud encircles the second part of the duodenum instead of passing behind it, it forms a ring of pancreas that can obstruct the duodenum, causing bilious vomiting. Like duodenal atresia, it is associated with Down syndrome.
Meckel diverticulum and Hirschsprung disease
Meckel diverticulum
The vitelline (omphalomesenteric) duct connects the midgut to the yolk sac and normally closes by week 7. A persistent remnant is a Meckel diverticulum: a true diverticulum, containing every layer of the bowel wall, on the antimesenteric border of the ileum. The "rule of 2s" summarizes it: about 2% of people, about 2 feet from the ileocecal valve, about 2 inches long, 2 types of ectopic tissue (gastric and pancreatic), and usually symptomatic before age 2[6].
The ectopic gastric mucosa explains the classic complication. It secretes acid, which ulcerates the neighboring ileum and causes painless rectal bleeding in a young child. A technetium-99m pertechnetate scan, taken up by gastric mucosa, shows it. It can also cause intussusception, volvulus or a diverticulitis that mimics appendicitis. A duct that stays fully open forms a vitelline fistula that drains meconium from the umbilicus.
Hirschsprung disease
The gut's own nervous system comes from neural crest cells that migrate from the top of the gut downward. In Hirschsprung disease they stop short, so a continuous segment of distal bowel lacks both the submucosal (Meissner) and myenteric (Auerbach) plexuses[7]. The segment always includes the rectum and extends upward for a variable length.
Without ganglion cells, the segment cannot relax, so it acts as a functional obstruction and the normal bowel above it dilates. A newborn fails to pass meconium within 48 hours, the abdomen swells, and vomiting may become bilious. On rectal examination the rectum is empty, and withdrawing the finger can release an explosive gush of stool. Diagnosis is by rectal suction biopsy showing no ganglion cells; a contrast enema shows a narrow distal segment and a transition zone. Associations include Down syndrome and RET gene variants (the same gene as in MEN2). Treatment is removal of the aganglionic segment with a pull-through, and the main danger is Hirschsprung enterocolitis.
Common confusions
- Bilious versus nonbilious vomiting: pyloric stenosis is above the ampulla and nonbilious; duodenal atresia, annular pancreas and volvulus are usually below it and bilious.
- Duodenal atresia versus malrotation with volvulus: atresia vomits from day one with a double bubble; volvulus strikes suddenly in a baby who was feeding well.
- Gastroschisis versus omphalocele: only omphalocele has a sac and a strong link to chromosomal syndromes.
- Hirschsprung disease versus meconium ileus or functional constipation: meconium ileus suggests cystic fibrosis, and functional constipation leaves a rectum full of stool rather than empty.
References
- Moore KL, Persaud TVN, Torchia MG. The Developing Human: Clinically Oriented Embryology. 11th ed. Elsevier; 2020. ↩
- Langer JC. Intestinal rotation abnormalities and midgut volvulus. Surg Clin North Am. 2017;97(1):147-159. doi:10.1016/j.suc.2016.08.011 Link ↩
- Gamba P, Midrio P. Abdominal wall defects: prenatal diagnosis, newborn management, and long-term outcomes. Semin Pediatr Surg. 2014;23(5):283-290. doi:10.1053/j.sempedsurg.2014.09.009 Link ↩
- Spitz L. Oesophageal atresia. Orphanet J Rare Dis. 2007;2:24. doi:10.1186/1750-1172-2-24 Link ↩
- Peters B, Oomen MW, Bakx R, Benninga MA. Advances in infantile hypertrophic pyloric stenosis. Expert Rev Gastroenterol Hepatol. 2014;8(5):533-541. doi:10.1586/17474124.2014.903799 Link ↩
- Sagar J, Kumar V, Shah DK. Meckel's diverticulum: a systematic review. J R Soc Med. 2006;99(10):501-505. doi:10.1258/jrsm.99.10.501 Link ↩
- Heuckeroth RO. Hirschsprung disease—integrating basic science and clinical medicine to improve outcomes. Nat Rev Gastroenterol Hepatol. 2018;15(3):152-167. doi:10.1038/nrgastro.2017.149 Link ↩