The writer is a non-executive director at the Department of Health and Social Care but is writing in a personal capacity

In the pandemic of March 2020, the UK health department was drowning in “data”, most of it useless. I became a temporary adviser and saw it first hand: hospitals were decanting patients into care homes but we had no idea who they were, or their state of health. Getting oxygen and PPE to intensive care units before they ran out was logistical hell. The NHS had three different IT departments, all utterly dysfunctional.

I wasn’t surprised. Long before the current row over Palantir, I’d been fighting for the basic joining-up of health data. A patient can arrive at A&E who is known to other services but doesn’t appear as a single coherent person on any system, and might not disclose a mental health issue, for example. Yet resistance to change is deep. GPs, who operate as private businesses, have spent a decade warding off attempts to let us see our own medical records. Plus the history of disastrous failed IT projects in the NHS makes everyone sceptical.

The situation is dreadful. A mess of legacy systems forces frontline staff to stare at screens when they should be at the bedside. Initiatives have been retrofitted on to systems built for another purpose, spawning entire national programmes that try to reduce the burden on staff and improve data flow. Operating theatres stand underused while teams invent workarounds: whiteboards in nurse stations, patient lists updated with a pen.

Data shouldn’t be something extracted from the frontline to fulfil ever-growing compliance requirements. It should serve the frontline and improve patient care. That is the aim of the Federated Data Platform, which aims to knit systems together. In 2023, the Sunak government signed a £330mn seven-year contract with Palantir, which managed the vaccine rollout during Covid, to license its Foundry software to the platform.

Palantir is controversial. While its software is credited with helping Ukraine’s defence against Vladimir Putin, it is also used by the Israel Defense Forces and in America’s Immigration and Customs Enforcement regime. Last week the Commons select committee on science, innovation and technology declared that the government should exercise the break clause in Palantir’s NHS contract, warning of a “mismatch” in values.

The committee warned of over-reliance on American companies, urging the government to “develop an in-house replacement or seek an alternative UK provider”. Perhaps the MPs are unaware that it was that great British company BT that presided over the disastrous National Programme for NHS IT. Tom Bartlett, former deputy director of data engineering at NHS England, who spent years building data platforms inside trusts and led the team that built the FDP, says there is no credible alternative. What Palantir has built is truly unique, he says (he has no ties to it), and the committee’s demands are undeliverable.

Of course we should have our eyes open. There are legitimate questions about the safety of data, and the reliability and effectiveness of systems. Yes, a rogue engineer at Palantir might be able to hack the information. But so could an employee at NHS England, which owns the data. While the pioneering health service trusts point to the FDP speeding up treatment and delivering more operations, a lot of NHS staff aren’t yet seeing the benefits: the platform is still used in very limited ways. As it rolls out, it will be easier to judge the full benefits, such as giving clinical staff the ability to build their own digital tools on the platform. But if staff are encouraged to boycott the product, that opportunity will be lost.

It used to be the populist right that opposed progress. In 2016, the Daily Mail declared victory over the scrapping of the multimillion-pound care.data scheme, amid concerns about privacy. The chosen villains of the conservative right were Microsoft, Google and Amazon Web Services, which hosts a great deal of NHS data on the cloud. Today, it’s the left and the target is Palantir. But the language is the same: it’s a sinister plot. The people who stand to benefit are the same: those who don’t want the performance of NHS fiefdoms to be comparable. The losers, again, are taxpayers and patients.

It’s not just the NHS that has become embroiled in the politics of the IT supplier, rather than what it can deliver. The Mayor of London has blocked the Met from using Palantir, because he says the company does not accord with “London values”. The Mayor claims that London’s police force did not tender the contract properly; the Met says that it used the Cabinet Office procurement framework. The Metropolitan Police Commissioner says that he will now have to withdraw hundreds of officers from frontline roles and downscale the ambition for operational efficiencies. That’s the real-world consequence of virtue-signalling.

Moral criteria arguments take us into tricky territory. How should Palantir’s refusal to work in Russia or China rank against its involvement with US immigration? Do we prefer Larry Ellison of Oracle, whose legacy systems some hospitals run on, to Peter Thiel? Should we trust Excel? That way madness lies.

The pandemic gave us a glimpse of something better, when the government eased restrictions on data sharing. This enabled us to identify the vulnerable who needed “shielding” and to spot gaps in vaccine take-up by ethnicity. The sky didn’t fall in. To me, what matters is what works. But that’s not a popular view.

camilla.cavendish@ft.com