(a)
Notwithstanding any other provision of law, the board of supervisors in a county containing a population of 4,000,000 or more may, without advertising for bids, lease any real property owned by the county to any nonprofit corporation or nonprofit association for a term not to exceed 40 years for the purpose of constructing, operating and maintaining buildings, structures and facilities on the property for a medical, dental or postgraduate medical school or a school for undergraduate or postgraduate training in other fields of medical and allied health care. Any instrument by which the property is leased shall require the lessee named in the lease to construct on the leased premises a building or buildings to be used for the public purpose of providing medical or dental instruction or instruction in other fields of medical and allied health care to qualified students during the term of the lease and shall provide that title to the buildings shall vest in the county or city and county at the expiration of the lease term, and shall contain other terms and conditions as the board of supervisors may deem to be in the best interests of the county or city and county.
(b)
Notwithstanding any other provision of law, the board of supervisors in a county containing a population of 4,000,000 or more may, without advertising for bids, lease real property, or portions thereof, owned at the time of the lease by the county and used for the purpose of conducting medical research and education to any medical school, nonprofit corporation, or nonprofit association for the purpose of conducting medical research and education. Any instrument by which the property is leased shall require the lessee named in the lease to maintain the leased premises and assume responsibility for capital improvements during the term of the lease and shall provide that title to any capital improvements shall vest in the county at the expiration of the lease term, and shall contain other terms and conditions as the board of supervisors may deem to be in the best interest of the county.