Palantir provides the software but installs in your cloud or hardware. They rarely exfiltrate the data. So you don’t give Palantir anything (usually).
Edit: I can understand not wanting to use a non-UK company for NHS health. But Palantir isn’t the all seeing bogeyman it’s made out to be. It’s just knowledge graph and AI models which run in your cloud or hardware.