Chris Brown has been diagnosed with bipolar disorder and Post Traumatic Stress Disorder, and has been ordered to stay in rehab for two more months Credit: Frederick M. Brown/Getty Images

Chris Brown is getting some answers. During a court appearance in L.A. on Friday, Feb. 28, the entertainer's rehab facility confirmed that Brown has been diagnosed with bipolar disorder, severe insomnia, and Post Traumatic Stress Disorder.

"Mr. Brown became aggressive and acted out physically due to his untreated mental health disorder, severe sleep deprivation, inappropriate self-medicating and untreated PTSD," the facility said in a letter, obtained by TMZ.

It continued: "Mr. Brown's attitude has been beyond exemplary in regard to his community service responsibilities."

The letter also stated that Brown, 24, has tested negative for drugs during his stay, and has been put on medication for his conditions.

Brown voluntarily checked himself into rehab on Oct. 29 after allegedly assaulting another man, Christopher Hollosy, in Washington D.C. The "Forever" singer has completed 95 days of anger management therapy, and was ordered Friday to stay in rehab for two more months.