A minor who has been declared to be within the jurisdiction of the juvenile court may, with the advice of counsel, make voluntary application for inpatient or outpatient mental health services in accordance with Section 5003. Notwithstanding the provisions of subdivision (b) of Section 6000, Section 6002, or Section 6004, the juvenile court may authorize the minor to make such application if it is satisfied from the evidence before it that the minor suffers from a mental disorder which may reasonably be expected to be cured or ameliorated by a course of treatment offered by the hospital, facility or program in which the minor wishes to be placed; and that there is no other available hospital, program, or facility which might better serve the minor’s medical needs and best interest. The superintendent or person in charge of any state, county, or other hospital facility or program may then receive the minor as a voluntary patient. Applications and placements under this section shall be subject to the provisions and requirements of the Short-Doyle Act (Part 2 (commencing with Section 5600), Division 5), which are generally applicable to voluntary admissions.
If the minor is accepted as a voluntary patient, the juvenile court may issue an order to the minor and to the person in charge of the hospital, facility or program in which the minor is to be placed that should the minor leave or demand to leave the care or custody thereof prior to the time he is discharged by the superintendent or person in charge, he shall be returned forthwith to the juvenile court for a further dispositional hearing pursuant to the juvenile court law.
The provisions of this section shall continue to apply to the minor until the termination or expiration of the jurisdiction of the juvenile court.