Hsg test and sexual activities

Hi all,

Baby dust to all just a quick question, are you allowed to have to have an orgasm without penetrative sex before a hsg procedure? I was told by the booking clerk at the hospital that no sexual acts at all for 21 days. Tad confused why...I understand chance of pregnancy prior to procedure is dangerous but surely without penetrative sex its safe?

Someone help! Thanks in advance.