Such could be a problem but before that, you may be asked for disclosure about prior issues over depression.
This could have already been a part of a questionnaire as part of your application.
Being a lawyer I cannot foresee what a doctor might see or ask. But, as a lawyer I can only suggest that you always tell the truth.
Obviously, you were in hard times at some point. Admit that if asked. Be prepared to discuss what treatments you underwent. The doctor only wants to know that you are healthy.
The doctor may not notice or care. But, being dishonest about your present or past health (if asked), is wrong and could result in later dismissal.
Show you are proud to have overcome and that you want to serve. I cannot recommend bringing the past up yourself but strongly recommend being as honest as you can be.
There is never a long term benefit to not telling the truth even if it creates a temporary setback.
Be proud you overcame and want to serve.