An Ostomy Causes a change in the way urine or stool exits the body as a result of a surgical procedure. Bodily waste is rerouted from its usual path because of malfunctioning parts of the urinary or digestive system. An ostomy can be temporary or permanent.