Once deemed competent to stand trial, defendants suffering from one of the disorders listed by the legislature could raise the issue at a pretrial hearing, where a judge would decide whether they qualify for protection from the death penalty if convicted.