The specifics of the surgery depend on the location of the obstruction. Generally, the surgeon will create a new pathway by connecting two healthy parts of the organ system. For instance, in a gastrointestinal bypass, the surgeon may connect the stomach to a part of the intestine past the blockage. The procedure can be performed using traditional open surgery or minimally invasive techniques like laparoscopy.