Your doctor may prescribe medications to ease cramping, gas pains, or other discomfort associated with the procedure.