The creation of a stoma is performed through a surgical procedure. The surgeon makes an incision in the abdomen and brings a portion of the intestine to the surface, creating an opening known as a stoma. The procedure can vary in complexity depending on the underlying condition and the specific needs of the neonate.