Infertility appt HSG test

Jessica
I had my first infertility appointment last Tuesday. My Doctor is recommending an HSG test, blood work for me and a semen analysis for my boyfriend. Has anyone had an HSG and are they painful?