Well I found this:
Becoming a Firefighter: Psychological Tests for Firefighters | Education.com
Based on other searches I'm pulling up in Google, it doesn't appear to be the case that anyone would be accessing your mental health or hospital records, but it does look like becoming a firefighter requires some psychological testing. Gives me the impression that so long as you were to stabilize with proper treatment prior to the testing, you would be fine.