Has a top voted answer that - basically - recommends NOT telling people upfront that a person has mental health issues that result in panic attacks under stress (not being a mental health professional, I have a weak suspicion that this isn't the full extent of the asker's possible issues, but this question is laser focused on panic attacks).
What are the downsides of NOT being honest and explaining that you have such a condition while interviewing (with the intent of not disclosing it after being hired as well, just to be clear), as the top voted answer to that question seems to imply?
Can you be fired once they find out due to the person having a panic attack in the middle of important client meeting, or (even for Office Space type programming job involving no contact with a client) a production emergency?
Just to clarify: although the Q&A that inspired this question was about interviews, the premise here is that you already are hired and still didn't disclose the mental health issue to HR and/or boss. As far as I'm aware, it's not really a problem if you don't disclose during interview but then tell the company upon hiring.