patients are legitimately judged incompetent in cases of