(c) Standard for Adjudications and Commitments Related to Mental Health-
(1) IN GENERAL- No department or agency of the Federal Government may provide to the Attorney General any record of an adjudication related to the mental health of a person or any commitment of a person to a mental institution if--
(A) the adjudication or commitment, respectively, has been set aside or expunged, or the person has otherwise been fully released or discharged from all mandatory treatment, supervision, or monitoring;
(B) the person has been found by a court, board, commission, or other lawful authority to no longer suffer from the mental health condition that was the basis of the adjudication or commitment, respectively, or has otherwise been found to be rehabilitated through any procedure available under law; or
(C) the adjudication or commitment, respectively, is based solely on a medical finding of disability, without an opportunity for a hearing by a court, board, commission, or other lawful authority, and the person has not been adjudicated as a mental defective consistent with section 922(g)(4) of title 18, United States Code, except that nothing in this section or any other provision of law shall prevent a Federal department or agency from providing to the Attorney General any record demonstrating that a person was adjudicated to be not guilty by reason of insanity, or based on lack of mental responsibility, or found incompetent to stand trial, in any criminal case or under the Uniform Code of Military Justice.
(2) TREATMENT OF CERTAIN ADJUDICATIONS AND COMMITMENTS-
(A) PROGRAM FOR RELIEF FROM DISABILITIES-
(i) IN GENERAL- Each department or agency of the United States that makes any adjudication related to the mental health of a person or imposes any commitment to a mental institution, as described in subsection (d)(4) and (g)(4) of section 922 of title 18, United States Code, shall establish, not later than 120 days after the date of enactment of this Act, a program that permits such a person to apply for relief from the disabilities imposed by such subsections.
(ii) PROCESS- Each application for relief submitted under the program required by this subparagraph shall be processed not later than 365 days after the receipt of the application. If a Federal department or agency fails to resolve an application for relief within 365 days for any reason, including a lack of appropriated funds, the department or agency shall be deemed for all purposes to have denied such request for relief without cause. Judicial review of any petitions brought under this clause shall be de novo.
(iii) JUDICIAL REVIEW- Relief and judicial review with respect to the program required by this subparagraph shall be available according to the standards prescribed in section 925(c) of title 18, United States Code. If the denial of a petition for relief has been reversed after such judicial review, the court shall award the prevailing party, other than the United States, a reasonable attorney's fee for any and all proceedings in relation to attaining such relief, and the United States shall be liable for such fee. Such fee shall be based upon the prevailing rates awarded to public interest legal aid organizations in the relevant community.
(B) RELIEF FROM DISABILITIES- In the case of an adjudication related to the mental health of a person or a commitment of a person to a mental institution, a record of which may not be provided to the Attorney General under paragraph (1), including because of the absence of a finding described in subparagraph (C) of such paragraph, or from which a person has been granted relief under a program established under subparagraph (A) or (B), or because of a removal of a record under section 103(e)(1)(D) of the Brady Handgun Violence Prevention Act, the adjudication or commitment, respectively, shall be deemed not to have occurred for purposes of subsections (d)(4) and (g)(4) of section 922 of title 18, United States Code. Any Federal agency that grants a person relief from disabilities under this subparagraph shall notify such person that the person is no longer prohibited under 922(d)(4) or 922(g)(4) of title 18, United States Code, on account of the relieved disability for which relief was granted pursuant to a proceeding conducted under this subparagraph, with respect to the acquisition, receipt, transfer, shipment, transportation, or possession of firearms.
(3) NOTICE REQUIREMENT- Effective 30 days after the date of enactment of this Act, any Federal department or agency that conducts proceedings to adjudicate a person as a mental defective under 922(d)(4) or 922(g)(4) of title 18, United States Code, shall provide both oral and written notice to the individual at the commencement of the adjudication process including--
(A) notice that should the agency adjudicate the person as a mental defective, or should the person be committed to a mental institution, such adjudication, when final, or such commitment, will prohibit the individual from purchasing, possessing, receiving, shipping or transporting a firearm or ammunition under section 922(d)(4) or section 922(g)(4) of title 18, United States Code;
(B) information about the penalties imposed for unlawful possession, receipt, shipment or transportation of a firearm under section 924(a)(2) of title 18, United States Code; and
(C) information about the availability of relief from the disabilities imposed by Federal laws with respect to the acquisition, receipt, transfer, shipment, transportation, or possession of firearms.
(4) EFFECTIVE DATE- Except for paragraph (3), this subsection shall apply to names and other information provided before, on, or after the date of enactment of this Act. Any name or information provided in violation of this subsection (other than in violation of paragraph (3)) before, on, or after such date shall be removed from the National Instant Criminal Background Check System.