"by leave of the court, the Attorney General, the patient or other person may apply to the" . . . . . .