But the main group of protesting medics has dismissed the deal.