General Part
Section II. Crime
Chapter 4. Persons Subject to Criminal Responsibility
Article 21. Insanity
1. A person who, at the time of the commission of a socially dangerous act, was insane, that is, was unable to understand the actual character or social danger of his actions (inaction) or to govern them as a result consequence of a chronic or temporary mental derangement, mental deficiency or any other mental condition, shall not be subject to criminal responsibility.
2. Compulsory medical treatment, as envisaged in this Code, may be imposed by a court of law on a person who has committed a socially dangerous deed in a state of insanity.
Article 22. Criminal Responsibility of Persons with Mental Derangement that Does Not Equal Sanity
1. A person of sound mind, who during the commission of a crime, by virtue of mental derangement could not in full measure comprehend the actual character and social danger of his actions (inaction), or control them, shall be subject to criminal responsibility.
2. Mental derangement that does not equal sanity shall be taken into consideration by a court of law when it imposes punishment, and may serve as grounds for the imposition of corrective medical treatment .
Incapacity - national proceedings
Insanity - national proceedings
Mental disease or defect - national proceedings
EDIT.