The involuntary detention or commitment of persons under this chapter shall conform to constitutional requirements for care and treatment.