NHS medical records handed to O2 to predict mental breakdowns โ€“ isnโ€™t this against the law?

And now O2 … what do they need health records for?