X-rays have a limited role in gynecology. They are primarily used for specific diagnostic purposes, such as hysterosalpingography (HSG) – an X-ray procedure used to evaluate the patency of the fallopian tubes and the shape of the uterine cavity. HSG is often used in the assessment of infertility. Other uses of X-rays include diagnosing bone-related conditions that may affect the pelvis.