Article 18 of the Criminal Law stipulates that if a mental patient causes harmful results when he cannot identify or control his own behavior, he shall not bear criminal responsibility if he is confirmed by legal procedures, but his family members or guardians shall be ordered to take strict care and medical treatment; When necessary, the government forces medical treatment.
Intermittent mental patients who commit crimes when they are mentally normal should bear criminal responsibility.
If a mental patient who has not completely lost the ability to identify or control his own behavior commits a crime, he shall bear criminal responsibility, but he may be given a lighter or mitigated punishment.
Please accept the answer if you are satisfied!