HSG test

How does someone go about scheduling this test to be done? Do you initially go through an OBGYN or is it through a fertility clinic?