HSG test

Kelsey
Has any one had a HSG test done with the X-ray. Does this hurt and how long does it take and do I need to worry of something going wrong.