Sonoma Valley Hospital has made official an affiliation agreement with UCSF Health, the top-ranked medical center in California and one of the top five hospitals nationwide.