A sterilization procedure authorized under this chapter shall not include hysterectomy or castration. However, if the report prepared under Section 1955 indicates that hysterectomy or castration is a medically necessary treatment, regardless of the need for sterilization, the court shall proceed pursuant to Section 2357.