US NDC Drug Code
Detects US National Drug Codes (NDC) used to identify drug products. Common labeler formats are 4-4-2, 5-3-2 and 5-4-2 (dashed) and the HIPAA 11-digit zero-padded form without separators.
- Type
- regex
- Engine
- boost_regex
- Confidence
- medium
- Confidence justification
- Medium confidence: digit groupings can match other catalog codes; drug/NDC keywords are required for reliable detection.
- Jurisdictions
- us, global
- Regulations
- HIPAA, FD&C Act, CCPA/CPRA
- Frameworks
- ISO 27001, ISO 27701
- Data categories
- healthcare, phi
- Scope
- narrow
- Risk rating
- 5
- Platform compatibility
- Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Unsupported
Pattern
\b(?:\d{5}-\d{4}-\d{2}|\d{4}-\d{4}-\d{2}|\d{5}-\d{3}-\d{2}|\d{11})\b
Corroborative evidence keywords
NDC, national drug code, NDC code, drug code, ICD-10, ICD-9, [object Object], [object Object], SNOMED, HCPCS, diagnosis code, procedure code, patient, clinical, medical, health, hospital, practitioner, diagnosis, treatment (+7 more)
Proximity: 300 characters
Should match
0777-3105-02— 5-4-2 package format0002-7597-01— Alternate 4-4-2 style padded labeler00002759701— 11-digit HIPAA form
Should not match
0777-3105-0— Trailing group only 1 digit0777310502— 10 digits continuous (not 11)0777-3105-021— Trailing group 3 digits
Known false positives
- SKU/catalog numbers with similar dash groups on non-drug products. Mitigation: Require NDC/drug/Rx/pharmaceutical keywords.