Uniform Code of Military Justice (UCMJ)
ART. 50a. DEFENSE OF LACK OF MENTAL RESPONSIBILITY
(a) It is an affirmative defense in a trial by court-martial that, at the time of the commission of the acts constituting the offense, the accused, as a result of a sever mental disease or defect, was unable to appreciate the nature and quality or the wrongfulness of the acts.