A minor shall be hospitalized only pursuant to the provisions of this chapter.