The number of announced hospital transactions trended upward between 2010 and 2019, according to health care research provider Kaufman Hall. But merger activity slowed over the past three years.