It does seem like an unfortunate oversight.
You'll probably get two perspectives here-the first concerned with the safety of everyone behind, and below you, the second advocating what they (the CAA medics) don't know, doesn't hurt them. (And let's face it, unless you're the subject of an AAIB report, they're unlikely to find out.)
I'm wondering if there's a "third way." I'm guessing that by virtue of the fact you've 'fessed up here, you're afraid of being haunted by this skeleton in the closet. Previous posts on here, suggest that past mental health problems, requiring medical intervention do raise concerns for the certifying authorities, but the boxes can usually be ticked eventually.
(You'll probably have to undergo a "specialist" psychiatric report-which you'll have to pay for.)
Previous scowering of this forum suggests that past treatment for a reactive problem shouldn't cause too much of an issue, but I'm sure others will add their own first hand experience.
Safe flying