I appreciate your response and thank you.
One last question is can employers discriminate against mental health issues?
Under the circumstances as you have described them and with no additional facts, an employer should not even learn that you went to the hospital for a mental health examination and would, therefore, have no reason to discriminate against you in its hiring decision.
Certainly if you were arrested for committing a crime against others due to a mental health issue, an employer could have access to the criminal record generated by the criminal action and not hire you.
An employer can be sued for the negligent hiring of a person, or the negligent retention of an employee, known to be a threat to others. But this would be based on the known public criminal records and not on the unknown mental health hospital records.