Skip to content

NHS number: anonymize it before ChatGPT or sharing

The NHS number (United Kingdom) is the patient number of the National Health Service in England, Wales and the Isle of Man. It turns up in documents people want to share or give to an AI assistant, and it should never go out as it is.

10 digits, usually 3-3-4 (943 476 5919); the last is a check digit (modulo 11).

The person’s whole health record.

Hospital letters, prescriptions, referrals, test results, care records.

Piixie has a dedicated rule for it, in every model including Lite: it matches the format and checks the control digits, so random numbers of the same length aren’t flagged and real ones aren’t missed. The local LLM also reads the context around it.

With Synthesize, a fake with the same shape and separators, consistent everywhere the same number appears. With Redact, a black box or [REDACTED]; with Replace, a placeholder such as [ID_1].

All of it happens on your computer: the document is never uploaded to find the numbers. See why a local LLM.