Hysterosalpingography is performed by injecting contrast into the uterus through a tube inserted through the woman’s vagina. X-Ray images are then taken to diagnose whether the fallopian tubes are patent or whether the uterus is structurally abnormal.