A battle between doctors and a hospital system is an early test of a new law designed to separate business and medicine.