GENERAL PART
SECTION II. CRIME
CHAPTER 4. Persons Who Are Liable to Criminal Liability
Article 24. Criminal Incapacity
(3) A person shall not be subject to a sentence, who committed a crime in the state of responsibility but before passing a sentence has fallen ill with a mental disease and he was not able to realize the danger of his act (omission) or direct them. Compulsory measures of medical character may be inflicted upon such person, but after his recovery he may be liable to punishment.
Mental disease or defect - national proceedings
EDIT.