An ostomy is a surgical procedure that creates an opening (stoma) in the abdominal wall to allow waste to exit the body when normal bowel or urinary function is impaired. There are different types of ostomies, including colostomy, ileostomy, and urostomy, depending on the part of the digestive or urinary system involved. Patients typically wear a pouching system to collect waste. Ostomies can be temporary or permanent, depending on the underlying medical condition.