getNDCs

Information returned
National Drug Codes (NDC) associated with a concept
Service domain
https://rxnav.nlm.nih.gov
HTTP request
GET  /REST/rxcui/rxcui/ndcs.xml

Description

Get the active National Drug Codes (NDCs) for the RxNorm concept specified by rxcui. Active NDCs are those NDCs present in the current version of RxNorm. Only the NDCs curated by RxNorm (i.e., with SAB = RXNORM) are returned by this function (i.e., the NDCs provided solely by proprietary sources, but not curated by RxNorm are omitted).

The NDCs are returned in the CMS 11-digit NDC derivative form.

Upcoming Changes On or After August 2, 2021:

Scope

Active: concepts in the current RxNorm data set that have an atom with SAB=RXNORM and SUPPRESS=N

Parameters

ParameterLocationUseDescriptionDefault
rxcuiPathRequiredRxNorm identifier
formatPathOptional

Notation for results

One of:
.xml
Get results in XML
.json
Get results in JSON
.xml

Output structure

Results are available as either XML or JSON.

  • The XML result has the root element rxnormdata. It is described in the XML Schema for the RxNorm API; the relevant element structure is summarized below. Elements that would be empty might be left out.

  • The JSON result is an object {...}, analogous to the content of the XML rxnormdata. Fields that might occur multiple times in the XML are expressed as an array. Fields that would be empty might be null or left out. Numbers are expressed as strings.

Both XML and JSON results follow the same outline:

rxnormdata
Root element in XML, or anonymous object in JSON
ndcGroup
rxcui
RxNorm identifier
ndcList
ndc (array)
National Drug Code (NDC) in CMS 11-digit format

Example: NDCs for Viagra 25 MG Oral Tablet (RxCUI=213269)

XML: https://rxnav.nlm.nih.gov/REST/rxcui/213269/ndcs

JSON: https://rxnav.nlm.nih.gov/REST/rxcui/213269/ndcs.json

An XML result is shown below.

<rxnormdata>
    <ndcGroup>
        <rxcui>213269</rxcui>
        <ndcList>
            <ndc>00069420030</ndc>
            <ndc>43063025606</ndc>
            <ndc>43353076402</ndc>
            <ndc>43353076404</ndc>
            <ndc>43353076406</ndc>
            <ndc>43353076412</ndc>
            <ndc>63629727301</ndc>
            <ndc>63629727302</ndc>
        </ndcList>
    </ndcGroup>
</rxnormdata>