Skip to contentRedact PII for your data. Get a quote

Coverage · Canada

British Columbia PHN detection and redaction

OpenAnonymizer finds the Canadian BC PHN in text and replaces it with a placeholder. The number is confirmed by its official label and its check digits are verified. It runs on a CPU, with no GPU and no API calls.

At a glance

Country
Canada CA
Format
BC PHNPersonal Health Number
Placeholder
CA_BC_PHN1Each distinct value gets its own number: CA_BC_PHN_1, CA_BC_PHN_2, and so on.
How it is confirmed
ChecksumOfficial label and checksum
Used for
Identifying a patient for life in British Columbia's health system. Holding one does not by itself mean the person is covered.

About the BC PHN

The PHN is 10 digits. The first is always 9 and the last is a check digit (modulus 11).

ExampleThe engine's real output for this input, in Fast mode (the default). The number is a test value.
In
PHN: 9123456780
Out
PHN: CA_BC_PHN1

How OpenAnonymizer handles it

Checked by checksum. The format's check digits are verified, so most mistyped or made-up numbers fail. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.

  • It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
  • Every package ships every detector, so this format is covered in each of them.
  • It covers 34 languages.
How a match is decided

The same country, or the same kind of number elsewhere.