German health care group Fresenius is buying Spain's biggest private hospital chain Quironsalud for 5.8 billion euros.