As mentioned in the post above, there isn't going to be a single answer. A medical LOA is usually not a huge deal, especially if it's for an acute issue that's resolved. PD's might be concerned about an illness with frequent recurrences, or something that might require marked accommodations. Theoretically it's illegal to consider things like this, but it happens. You don't have to disclose the nature of your illness in your application, but people may infer their own interpretation.
The LOA for academic issues is a problem that some programs will overlook, and others won't. It's not the LOA -- it's the academic issues.
The biggest predictor of how you'll do in the match would be your future performance. Put this behind you, score well on the USMLE, do well on your clinicals, and many programs may see this as "a thing in the past". Struggle with any of those and your story suggests ongoing problems which programs may want to avoid.