A Hysterosalpingogram (HSG) is an x-ray test that looks at the inside of the uterus and fallo-pian tubes and the area around them. During a Hysterosalpingogram, a dye is put through a thin tube that is put through the vagina and into the uterus. Because the uterus and the fallopian tubes are hooked together, the dye will flow into the fallopian tubes. Pictures are taken using a steady beam of x-ray as the dye passes through the uterus and fallopian tubes.