It won't hurt you for medschool unless you bring it up in interviews and the guy/gal interviewing you is a jerk.
1) don't bring it up in interviews, unless you can spin it into a cool asset for your application
2) be careful of accepting medication from now on, unless you don't mind hiding the fact that you have taken them. Many of my doc & dentist friends have been hurt by their honesty when applying for insurance. Apparently having previous prescriptions for antidepressants, antianxiety drugs, etc. can drastically complicate your ability to get coverage with some companies. (I am speaking about life and disability insurance for professionals, not malpractice insurance). My partner had trouble sleeping his last year of dental school, and the school health clinic gave him an anxiety drug. It worked, but it also invalidated him for disability insurance the first time he applied. The clinician said she wasn't writing it up as an anxiety disorder in his chart, but that is exactly what she wrote down.
Don't let this keep you from going to a therapist. I used a psychologist many years ago & it really helped put my life back on track. However, be aware that certain diagnoses *can* hurt you. Talk to your psychologist/psychiatrist to see how much of your record has to be shared with insurance companies, etc. One friend of mine saw what happened to my partner & went to a private doc, and paid for treatment & prescriptions without using his health insurance. His arrangement should prevent the complications mentioned above.