A diagnostic test during which a woman's uterus is injected with dye and then examined by X-ray to determine if the fluid spills into the pelvic cavity, assessing the patency of the fallopian tubes.