They would know if you were on medication for depression. I know there were rules against police being depressed, rather on depression meds.
I was married to a "God" in the Navy. I can't prove what I know, I know what I have heard "seen" when my husband was in the Navy it was still frowned upon to be on meds, bad enough if you saw a shrink, so much for getting help, look, if some our media still lumps people together, the other night I heard "If they're seeing a shrink, aren't they unstable to begin with" attitude... That's how some still view "Us"
Now, once you have sought help, you can be "Overlooked" for a promotion, different duties, they used to find ways to weed people out, of course it had nothing to do with your depression....Now, perhaps this depends on what tour you're on, the higher ups at the time, it's the luck of the draw. There's so much crap that still goes on.
There's also some good, let's say you go home and beat on your wife, or the other way around, when it's prov en, and your commanding officer finds out about it....It's not like in the real world, you can get into some serious trouble.
So, let me conclude this by saying, I've known many retired military, I have noticed that when they have been career military, not all, but many are heavy drinkers, suffer from depression, what I've seen, I'd rather have our men treated for depression then self medicating.
Look at our people Iraq, it would be nice if they were monitored, you can believe some have to be suffering badly. If the military doesn't see this, or rather accept it, they have their heads up their....