HSG test

Does anyone know if you have to have a referral or anything to have a HSG procedure done??