If there is evidence that a person is a danger to themselves or others the a police officer can forcibly take that person to a hospital for evaluation and the hospital can hold the person involuntarily for 72 hours. To hold the person for longer than 72 hours the hold must be reviewed and approved by a judge. As you might expect the system is subject to significant abuse.