A stoma brings bowel out to the skin. How it's built depends on how irritating its contents are.
Small bowel contents are irritant, so an ileostomy is spouted, usually sited over the right iliac fossa, with liquid output. A colostomy carries less irritant colonic contents, so it sits flush with the skin, usually on the left, with solid output. Pre-mark the site before surgery to reduce leaks. A loop ileostomy defunctions the colon, for example after rectal cancer surgery. Ileostomies risk high output and electrolyte imbalance. Colostomies are the stomas most likely to prolapse and to develop a parastomal hernia.