Undergoing an HSG procedure is one of the ways to determine infertility in women. If you are having a hard time conceiving a child, it is best that you consult with your doctor about an HSG test. The doctor can then order an HSG test for infertility performed.