General provision
SECTION II
CRIME
CHAPTER 4
PERSONS SUBJECTED TO CRIMINAL LIABILITY
Article 21 Diminished capacity
21.1. The person, who at the time of committing publicly dangerous act (action or inaction), was in a condition of diminished responsibility, and could not realize actual nature and public danger of the acts (actions or inaction) or supervise over them in order to chronic mental disease, timed infringement of mental activity, dementia or other mental disease shall not be subjected to the criminal liability.
21.2. To the person, who has committed publicly dangerous act (action or inaction) in a condition of diminished responsibility, court can appoint the forced measures of medical nature provided by the present Code.
21.3. To the person, who has committed a crime in a condition of legal capacity, but before adopting by court of a decision, he has became emotionally diseased, and depriving opportunity to realize actual nature and public danger of his acts (actions or inaction) or supervise over them, court can appoint forced measures of medical nature as it provided by the present Code.
Incapacity - national proceedings
Insanity - national proceedings
Mental disease or defect - national proceedings
EDIT.