A hysterosalpingogram or HSG is an X-ray procedure used to check if the fallopian tubes are patent (open) and the inside