NPI

Detects US National Provider Identifier (NPI) values structurally: a ten-digit number beginning with 1 or 2. Detection is structural only — the NPI Luhn checksum (80840 prefix) is NOT enforced. Confidence comes from healthcare context tiers (NPI-specific terms at 85, broader provider/claims context at 75, bare shape discovery-only at 65), and an all-same-digit guard rejects repeated-digit values such as 1111111111.

Type
regex
Engine
universal
Confidence
medium
Confidence justification
Medium confidence: the bare shape \b[12]\d{9}\b is a common 10-digit form and is only discovery-only without healthcare context. Even with NPI/provider keywords, the Luhn checksum is not enforced, so medium confidence is honest until a checksum-backed revision lands. Risk rating remains 3 (OFFICIAL) per v25 authoritative assessment of the structural detector.
Detection quality
Verified
Jurisdictions
us
Regulations
CCPA/CPRA, FTC Act s5, HIPAA, State Breach Laws (US)
Frameworks
ISO 27001, ISO 27701, SOC 2
Data categories
phi, healthcare
Scope
narrow
Risk rating
3
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Compatible

Pattern

\b[12]\d{9}\b

Corroborative evidence keywords

MRN, medical record number, patient ID, NPI, DEA, medicare, medicaid, insurance ID, member ID, beneficiary, ICD-10, ICD-9, CPT, NDC, SNOMED, HCPCS, diagnosis code, procedure code, drug code, [object Object] (+2 more)

Proximity: 300 characters

Should match

Should not match

Known false positives

Collections