; and (2) an individual who reviews or creates a medical quality assurance record of the Department or who participates in any proceeding that reviews or creates a medical quality assurance record of the Department may not be permitted or required to testify in any judicial or administrative proceeding with respect to such record or with respect to any finding, recommendation, evaluation, opinion, or action taken by such individual in connection with such record. (d) Authorized disclosure and testimony (1) In general Subject to paragraph (2), a medical quality assurance record of the Department may be disclosed, and a person described in subsection (c)(2) may give testimony in connection with the record, only as follows: (A) To a Federal agency or private organization, if such medical quality assurance record of the Department or testimony is needed by the Federal agency or private organization to— (i) perform licensing or accreditation functions related to Department health care facilities, a facility affiliated with the Department, or any other location authorized by the Secretary for the performance of health care services