Welcome to the forum. Thank you for your confidence in our services.
Of course I cannot judge whether you had sex during your black-out interval; you were there and I wasn't. However, from what you say it sounds pretty unlikely.
I'm sorry to hear about your epididymitis (or epididymo-orchitis, really the same thing). You don't say your age, but under age 35, most cases are due to gonorrhea or chlamydia. Over 35, most are due to non-STI urinary tract infection bacteria (like E. coli and others). Regardless of your age, it is unfortunate you were not tested for all these before starting treatment. However, that the doctor or clinic you saw treated you with doxycycline suggests they suspected chlamydia or other STI; doxycycline usually would not be the preferred drug for non-STD epididymitis. That said, testing 4 days after starting treatment usually would be positive for gonorrhea or chlamydia -- so most likely neither was the cause. Also against these is your apparent lack of sexual exposure. (That said, are you confident your wife hasn't been having sex with others? I'm not assuming that, but obviously it's a logical question.)
As for the apparent recurrence of epididymitis, at least this time you were tested for STIs with negative results -- presumably including gonorrhea and chlamydia, in addition to trichomonas and Mycoplasma genitalium. (Neither trich nor M gen have been reported to cause epididymitis.) And recurrent STD-related epididymitis is very rare if it occurs at all. However, recurrence is quite frequent for the non-STD causes, often because there is an occult infection in the prostate gland. I certainly hope this time you were tested for UTI bacteria -- if not, shame on your doctor(s)! What treatment were you given and how is it going?
But now we also have to contend with your wife's symptoms. If not done already, you and she need to have a senstive discussion about her STD risks, if any, and perhaps your own. All women with new or unexplained vaginal discharge should be professionally evaluated, even without a partner's history like yours; and yellow discharge could go along with an infection of some sort. She should be evaluated by a well trained physician who understands STDs, urinary tract infections, and genital health.
All things considered, I believe it unlikely that any STI is responsible for your infections or your wife's symptoms. But I would enjoy hearing more: your and your wife's ages; how you are now being treated; what your urinalysis showed; whether a non-STD urine culture was done to check for UTI bacteria; and the results of complete gynecologic exam of your wife, including STI testing. In the meantime, I hope these comments have been helpful.
HHH, MD
---