The status of “incompetency to stand trial” was first created by a US Supreme Court case in the early 20th century.