This part of the process is called an ileostomy. And the little bag the waste goes into is called an ileostomy bag. The last part of the process occurs a few months later when you're healed.