When can I have sex after a hsg

Hi I had a hsg yesterday but I’m coming up to my fertile window and just wondering when I’m okay to have sex in the hospital they said right away but I had a tiny bit of bleeding that’s now stopped and was a bit tender also easing just wondering when everyone else thought it was okay to do it? Thanks