(a) (1) A police record concerning a child is confidential and shall be maintained separate from those of adults. Its contents may not be divulged, by subpoena or otherwise, except by order of the court upon good cause shown or as otherwise provided in § 7–303 of the Education Article.
(2) This subsection does not prohibit:
(i) Access to and confidential use of the record by the Department of Juvenile Services or in the investigation and prosecution of the child by any law enforcement agency;
(ii) Access to and confidential use of the record by the Baltimore City Mayor’s Office on Criminal Justice if the Baltimore City Mayor’s Office on Criminal Justice is providing programs and services to a child who is the subject of the record, for a purpose relevant to the provisions of the programs and services and the development of a comprehensive treatment plan;
(iii) A law enforcement agency of the State or of a political subdivision of the State, the Department of Juvenile Services, or the criminal justice information system from including in the law enforcement computer information system information about an outstanding juvenile court ordered writ of attachment, for the sole purpose of apprehending a child named in the writ; or
(iv) A law enforcement agency of the State or of a political subdivision of the State from releasing to the public photographs and identifying information of a child who has escaped from a detention center for juveniles or a secure residential facility for juveniles, for the purposes of facilitating apprehension of the child and ensuring public safety.
(3) The Baltimore City Mayor’s Office on Criminal Justice shall be liable for the unauthorized release of a police record it accesses under this subsection.
(b) (1) A court record pertaining to a child is confidential and its contents may not be divulged, by subpoena or otherwise, except by order of the court upon good cause shown or as provided in §§ 7–303 and 22–309 of the Education Article.
(2) This subsection does not prohibit access to and the use of the court record or fingerprints of a child described under Title 10, Subtitle 2 of the Criminal Procedure Article in a proceeding in the court involving the child, by personnel of the court, the State’s Attorney, counsel for the child, a court–appointed special advocate for the child, or authorized personnel of the Department of Juvenile Services.
(3) (i) Except as provided in subparagraph (ii) of this paragraph, this subsection does not prohibit access to and confidential use of the court record or fingerprints of a child described under Title 10, Subtitle 2 of the Criminal Procedure Article by the Department of Juvenile Services or in an investigation and prosecution by a law enforcement agency.
(ii) The court record or fingerprints of a child described under §§ 10–215(a)(20) and (21), 10–216, and 10–220 of the Criminal Procedure Article may not be disclosed to:
1. A federal criminal justice agency or information center; or
2. Any law enforcement agency other than a law enforcement agency of the State or a political subdivision of the State.
(4) (i) The Department of Juvenile Services may provide access to and the confidential use of the court record of a child by an agency in the District of Columbia or a state agency in Delaware, Pennsylvania, Virginia, or West Virginia, if the agency:
1. Performs the same functions in the jurisdiction of the agency as described in § 9–216(a) of the Human Services Article; and
2. Has a reciprocal agreement with the State that provides that the specific information to be shared by the State is the same type of information that will be shared by the agency.
(ii) A record that is shared under this paragraph may only provide information that is relevant to the supervision, care, and treatment of the child.
(iii) The Department of Juvenile Services shall be liable for an unauthorized release of a court record under this paragraph.
(iv) The Department of Juvenile Services shall adopt regulations to implement this paragraph.
(5) (i) This subsection does not prohibit access to and use of a court record by a judicial officer who is authorized under the Maryland Rules to determine a defendant’s eligibility for pretrial release, counsel for the defendant, the State’s Attorney, or the Maryland Division of Pretrial Detention and Services if:
1. The individual who is the subject of the court record is charged as an adult with an offense;
2. The access to and use of the court record is strictly limited for the purpose of determining the defendant’s eligibility for pretrial release; and
3. The court record concerns an adjudication of delinquency that occurred within 3 years of the date the individual is charged as an adult.
(ii) The Court of Appeals may adopt rules to implement the provisions of this paragraph.
(6) (i) This subsection does not prohibit access to and confidential use of a court record by the Department of Human Services or a local department of social services for:
1. The purpose of claiming federal Title IV–B and Title IV–E funds; or
2. If the Department of Human Services or a local department of social services is providing services or care in coordination with the Department of Juvenile Services to a child who is the subject of the record, a purpose relevant to the provision of the services or care.
(ii) The Department of Human Services and local departments of social services shall keep a court record obtained under this paragraph confidential in accordance with the laws and policies applicable to the Department of Human Services and local departments of social services.
(7) (i) This subsection does not prohibit access to and confidential use of a court record by the Maryland Department of Health or a local health department if the Maryland Department of Health or a local health department is providing treatment, services, or care in coordination with the Department of Juvenile Services to a child who is the subject of the record, for a purpose relevant to the provision of the treatment, services, or care.
(ii) The Maryland Department of Health and local health departments shall keep a court record obtained under this paragraph confidential in accordance with the laws and policies applicable to the Maryland Department of Health and local health departments.
(8) This subsection does not prohibit access to and confidential use of a court record by the Baltimore City Mayor’s Office on Criminal Justice if the Baltimore City Mayor’s Office on Criminal Justice is providing programs and services in conjunction with the Department of Juvenile Services to a child who is the subject of the record, for a purpose relevant to the provisions of the programs and services and the development of a comprehensive treatment plan.
(9) The Baltimore City Mayor’s Office on Criminal Justice shall be liable for the unauthorized release of a court record it accesses under this subsection.
(10) This subsection does not prohibit access to and confidential use of a court record by the State Advisory Board for Juvenile Services if the Board is performing the functions described under § 9–215(5) of the Human Services Article.
(c) The court, on its own motion or on petition, and for good cause shown, may order the court records of a child sealed, and, upon petition or on its own motion, shall order them sealed after the child has reached 21 years of age. If sealed, the court records of a child may not be opened, for any purpose, except by order of the court upon good cause shown.
(d) This section does not prohibit access to or use of any juvenile record by the Maryland Division of Parole and Probation or the Maryland Parole Commission when the Division or the Commission is carrying out any of their statutory duties either at the direction of a court of competent jurisdiction, or when the Maryland Parole Commission is carrying out any of its statutory duties, if the record concerns a charge or adjudication of delinquency.
(e) This section does not prohibit access to and use of any juvenile record by the Maryland Division of Correction when the Division is carrying out any of its statutory duties if: (1) the individual to whom the record pertains is committed to the custody of the Division; and (2) the record concerns an adjudication of delinquency.
(f) Subject to the provisions of §§ 9–219 and 9–220 of the Human Services Article, this section does not prohibit access to or use of any juvenile record for criminal justice research purposes. A record used under this subsection may not contain the name of the individual to whom the record pertains, or any other identifying information which could reveal the individual’s name.
(g) This section does not prohibit a victim or victim’s representative who has filed a notification request form from being notified of proceedings and events involving the defendant or child as provided in this subtitle, the Criminal Procedure Article, or the Criminal Law Article.
(h) This section does not prohibit the Department of Public Safety and Correctional Services or a supervising authority, as defined in § 11–701 of the Criminal Procedure Article, from accessing or using the part of a juvenile record that identifies an offense committed by a juvenile for purposes of complying with Title 11, Subtitle 7 of the Criminal Procedure Article.