Some patients need a temporary colostomy to allow the lower colon or rectum to heal after surgery. After a colostomy, the patient wears a special bag to collect body waste.