In at least 12 of the 19 states where Acadia Healthcare operates psychiatric hospitals, dozens of patients, employees and police officers have alerted the authorities that the company was detaining people in ways that violated the law. In some cases, judges have intervened to force Acadia to release patients.