TTC FOR 3 years. EPIDIDYMITIS

Hi, is epididymitis easy to cure????

My husband is taking doxycycline for it,

On the other hand, is it okay to have intercourse? Dr didn’t mention anything about that.