If the petition is granted, the court may order that the incompetent be sterilized by X-ray or by vasectomy, in the case of a male incompetent person, or salpingectomy, in the case of a female incompetent person, or other procedure as at the time may constitute a procedure generally accepted by the medical profession, by a licensed medical practitioner at a licensed hospital.