in criminal, civil, or administrative investigations, actions, or proceedings Subsection (c) of section 543 of the Public Health Service Act ( 42 U.S.C. 290dd–2(c) ) is amended to read as follows: (c) Use of records in criminal, civil, or administrative contexts Except as otherwise authorized by a court order under subsection (b)(2)(C) or by the consent of the patient, a record referred to in subsection (a), or testimony relaying the information contained therein, may not be disclosed or used in any civil, criminal, administrative, or legislative proceedings conducted by any Federal, State, or local authority, including with respect to the following activities: (1) Such record or testimony shall not be entered into evidence in any criminal prosecution or civil action before a Federal or State court. (2) Such record or testimony shall not form part of the record for decision or otherwise be taken into account in any proceeding before a Federal, State, or local agency. (3) Such record or testimony shall not be used by any Federal, State, or local agency for a law enforcement purpose or to conduct any law enforcement investigation. (4) Such record or testimony shall not be used in any application for a warrant. . (f) Penalties Subsection (f) of section 543 of the Public Health Service Act ( 42 U.S.C. 290dd–2 ) is amended to read as follows: (f) Penalties The provisions of sections 1176 and 1177 of the Social Security Act shall apply to a violation of this section to the extent and in the same manner as such provisions apply to a violation of part C of title XI of such Act. In applying the previous sentence— (1) the reference to this subsection in subsection (a)(2) of such section 1176 shall be treated as a reference to this subsection (including as applied pursuant to section 543(f) of the Public Health Service Act)