Social Health Authority reaches deal with hospitals