In most women, the dye painlessly just passes through the uterus, through the fallopian tubes, and out into the abdominal cavity. … The good news is that if you do feel intense pain, it shouldn’t last for more than a minute. Most doctors recommend taking ibuprofen an hour before the HSG