Any type of surgical procedure that creates a hole to connect the gastrointestinal tract to the abdominal wall. Examples include ileostomy and colostomy.