---
id: "us_ndc"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["medical"]
country: ["US"]
langs: ["common"]
quality: 95
url: "http://registry.apicrafter.io/datatype/us_ndc"
---

# US National Drug Code (NDC) (`us_ndc`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Ten-digit identifier of a drug package listed with the US Food and Drug Administration. It has three segments: the labeler code assigned by the FDA, the product code and the package code, both assigned by the labeler. The official form separates the segments with hyphens in one of the configurations 4-4-2, 5-3-2, 5-4-1, 6-3-2 or 6-4-1. Claims data under HIPAA use an 11-digit form without hyphens that pads the segments with zeros to 5-4-2.

- Personal data (PII): no
- Categories: Medical/pharma identifiers (medical)
- Countries: United States (US)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:\d{4}-\d{4}-\d{2}|\d{5}-\d{3}-\d{2}|\d{5}-\d{4}-\d|\d{6}-\d{3}-\d{2}|\d{6}-\d{4}-\d|\d{11})$
```

## Examples

- `50242-090-02` — Zelboraf (vemurafenib), 5-3-2 configuration
- `0009-0417-01` — Depo-Testosterone, 4-4-2 configuration
- `00009041701` — The same package in the 11-digit HIPAA form
- `50242-090` (invalid example) — Labeler and product only; the package code is missing

## Mappings

- bioregistry: `ndc`

## Supported by tools

- `amazonmacie`
- `awsglue`
- `collibra`
- `ibmknowledgecatalog`
- `nightfall`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/National_drug_code>
- doc: <https://open.fda.gov/apis/drug/ndc/>

## Quality

Score 95/100. Missing: translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/us_ndc.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/medical/us_ndc.yaml>
