detained
If you’re detained, it means you’re not allowed to leave a place such as a psychiatric facility or jail. It means you have to stay there even if you don’t want to. The law gives some people, such as the police or your doctor, the right to detain you in certain situations. For example, if you’re likely to seriously hurt yourself or someone else.