How can my husband get a referral for a sperm analysis?

There's this lab by us that only charges $100 for a sperm analysis instead of 300, but they need something from a doctor saying he needs it done. Can he go to any kind of doctor and does he just ask them for a referral? Idk how this works...