(b) An inmate in a Division of Juvenile Justice facility or any county- or city-operated juvenile facility who is 15 years of age or older may file a request for a test of another inmate in that facility, in the same manner as an inmate in a state prison, and is subject to the same procedures and rights. An inmate in a Division of Juvenile Justice facility or a county- or city-operated juvenile facility who is a minor may file a request for testing through a staff member of the facility in which he or she is confined. A staff member may file this request on behalf of a minor on his or her own volition if he or she believes that a situation meeting the criteria specified in subdivision (a) has occurred warranting the request. The filing of a request by staff on behalf of an inmate of a Division of Juvenile Justice facility or a local juvenile facility shall be within two calendar days of its discovery by staff, except that the chief medical officer may waive this filing period requirement if he or she finds that good cause exists. When a request is filed on behalf of a minor, the facility shall notify the parent or guardian of the minor of the request and seek permission from the parent or guardian for the test request to proceed. If the parent or guardian refuses to grant permission for the test, the Director of the Division of Juvenile Facilities may request the juvenile court in the county in which the facility is located, to rule on whether the test request procedure set forth in this title shall continue. The juvenile court shall make a ruling within five days of the case being brought before the court.
If the parent or guardian cannot be located, the superintendent of the facility shall approve or disapprove the request for a test.