Every governing body of a city shall appoint a health officer, except when the city has made other arrangements, as specified in this code, for the county to exercise the same powers and duties within the city, as are conferred upon city health officers by law.