This law amends rules on security measures in the General Penal Code and applies to people acquitted due to mental health issues or when punishment is deemed ineffective. It establishes that security measures, including secure care in healthcare facilities or lighter measures, may only be applied if there is danger to the life, health, or freedom of others. A judge appoints a supervisor to ensure measures are not more burdensome than necessary, and they must be reviewed regularly and cannot last longer than five years at a time. The law also applies to prisoners deemed dangerous after serving their sentence, who may then be subject to continued detention or security measures if considered necessary.