(a) A mental health facility operated by the department or a federal agency need not be licensed under this chapter.
(b) This chapter does not apply to a psychiatric residential youth treatment facility certified under Chapter 577A.