What is hysterosalpingography (HSG)? Hysterosalpingography (HSG) is an X-ray procedure that is used to view the inside of the uterus and fallopian tubes. It often is used to see if the fallopian tubes are partly or fully blocked.