The branch of medicine that deals with the treatment, diagnosis and prevention of mental and emotional or behavioral disorders.