(a) Except as provided by Subsection (b), a complaint and investigation and all information and materials compiled by the commission in connection with the complaint and investigation are not subject to:
(1) disclosure under Chapter 552, Government Code; or
(2) disclosure, discovery, subpoena, or other means of legal compulsion for release of information to any person.
(b) A complaint or investigation subject to Subsection (a) and all information and materials compiled by the commission in connection with the complaint may be disclosed to:
(1) the commission and commission employees or agents involved in license holder discipline;
(2) a party to a disciplinary action against the license holder or that party's designated representative;
(3) a law enforcement agency; or
(4) a governmental agency, if the disclosure is required or permitted by law.
(c) The commission is not required under Subsection (b) to release the identity of a complainant who will not testify at the hearing.
(d) Notwithstanding Subsection (a), on the dismissal or final resolution of a complaint or investigation, a final order of the commission is subject to disclosure under Chapter 552, Government Code.