a psychiatrist and specialist in the legal aspects of mental illness
Alienist is an archaic term for a psychiatrist or psychologist. Despite falling out of favor by the middle of the twentieth century, it received renewed attention when used in the title of the 1994 novel The Alienist by Caleb Carr.