If a medical student diagnosed with depression, do think that could affect his future career as a doctor?
It will make him\her a better doctor ! Because any personal experience with illness urges you to expand your knowledge in the subject area. Therfore, you will be able to conquer it and become a betted doctor in the future for every patient with a mental disorder. Depression is a change at the molecular level of neurons and other resident cells in the brain. So it needs time and effort to manage it. Nothing on earth will halt you from having a career in medicine unless you allow it & settle for less than you deserve. Good luck.