Hello
Rest assured that having a record will not affect your chances at all. Entry into medical school is by merit. In fact, not receiving appropriate treatment for your condition, be it from IMH or other mental health professionals, can only jeopardize your chances of getting into medical school if this is what you decide to pursue.
Hope this helps. Thank you!