Cal. Code Regs. tit. 22, § 50049
An institution for mental diseases means an institution primarily engaged in providing diagnosis, treatment or care for persons with mental illness.