The term, "mentally incompetent to proceed," as used in this chapter, means the condition of a person who is suffering from a mental disease, developmental disability, as defined in § 27B-1-18, or psychological, physiological, or etiological condition rendering him mentally incompetent to the extent that he is unable to understand the nature and consequences of the proceedings against him or to assist properly in his defense.
SDCL 23A-10A-1