Four of the top five largest employers in Boston were hospitals in 2018, showing the growing strength of the health care sector to the city’s economy.