question: Diaphragmatic hernia (Treatment): A diaphragmatic hernia repair is an emergency that requires surgery. Surgery is done to place the abdominal organs into the proper position and repair the opening in the diaphragm.   The infant will need breathing support during the recovery period. Some infants are placed on a heart/lung bypass machine to help deliver enough oxygen to the body.    If a diaphragmatic hernia is diagnosed early during pregnancy (before 24 to 28 weeks), fetal surgery may be an option in some situations.