Except for those developmentally disabled persons judicially committed to state hospitals, no developmentally disabled person shall be admitted to a state hospital except upon the referral of a regional center. Upon discharge from a state hospital, a developmentally disabled person shall be referred to an appropriate regional center.