alienist

noun | \ ˈā-lē-ə-nist, ˈāl-yə- \ | alien·ist
  1. : a psychiatrist who specializes in the legal aspects of psychiatry (as determining sanity or capacity to stand trial)