That would pretty much guarantee that people who need mental health services would deliberately avoid getting it to prevent it from showing up on their records, e.g. a security guard who needs to carry a firearm for their job.
"socially awkward people aren't allowed to have guns" as a policy would be a flagrant violation of a constitutional right.
The scary thing is that mentally ill people can intentionally mask their illness in order to pass exams.