Hysterosalpingography (HSG) is an X-ray procedure that is used to see within the uterus and fallopian tubes. It often is used to see if the fallopian tubes are partly or fully blocked. It also can show assuming within the uterus is a normal size and shape.