US NDC Drug Code
Detects US National Drug Codes (NDC) identifying drug products, including common dashed labeler formats (4-4-2, 5-3-2, 5-4-2) and HIPAA 11-digit zero-padded forms. Structural NDC candidates used in pharmacy, claims, and clinical product coding.
- 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
- 3
- 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 digits12345-678— Only 2 groups instead of 3 (missing package segment) (merged from companion SIT)123-4567-01— Wrong digit count in first group (3 instead of 4 or 5) (merged from companion SIT)12345-67890-1— Too many digits in second group (merged from companion SIT)template example placeholder record identifier— Template/sample context should be excluded even when anchor words are present (merged from companion SIT)Warehouse SKU 0002-3227-01— Valid-shaped inventory value must remain discovery-only (merged from companion SIT)
Known false positives
- SKU/catalog numbers with similar dash groups on non-drug products. Mitigation: Require NDC/drug/Rx/pharmaceutical keywords.