The process of identifying and diagnosing mental disorders and determining the appropriate treatment for a patient.