Section 7. (a) The superintendent of a facility may petition the district court or the division of the juvenile court department in whose jurisdiction the facility is located for the commitment to said facility and retention of any patient at said facility whom said superintendent determines that the failure to hospitalize would create a likelihood of serious harm by reason of mental illness.
(b) The medical director of the Bridgewater state hospital, the commissioner of mental health, or with the approval of the commissioner of mental health, the superintendent of a facility, may petition the district court or the division of the juvenile court department in whose jurisdiction the facility or hospital is located for the commitment to the Bridgewater state hospital of any male patient at said facility or hospital when it is determined that the failure to hospitalize in strict security would create a likelihood of serious harm by reason of mental illness.
(c) Whenever a court receives a petition filed under any provisions of this chapter for an order of commitment of a person to a facility or to the Bridgewater state hospital, such court shall notify the person, and his nearest relative or guardian, of the receipt of such petition and of the date a hearing on such petition is to be held. The hearing on a petition brought for commitment pursuant to paragraph (e) of section 15, and sections 16 and 18, or for a subsequent commitment pursuant to paragraph (d) of section 8 shall be commenced within 14 days of the filing of the petition, unless a delay is requested by the person or his counsel. For all other persons, the hearing shall be commenced within 5 days of the filing of the petition, unless a delay is requested by the person or his counsel. The periods of time prescribed or allowed under the provisions of this section shall be computed pursuant to Rule 6 of the Massachusetts Rules of Civil Procedure.