County hospital signs long-term agreement with hospital syst