i believe the answer is psychiatrist
Psychiatrist specialized in the diagnosis, prevention and treatment of psychological disorders.
Even though they technically possess a medical degree, they're not allowed to treat physical related illness unless they're being referred to.