APIs

RxNorm API

findRxcuiById

Information returned
Concepts associated with a specified identifier
Service domain
https://rxnav.nlm.nih.gov
HTTP request
GET  /REST/rxcui.xml?idtype=yourIdtype&id=yourId&allsrc=0or1

Description

Searches for an identifier (id parameter) from an RxNorm vocabulary indicated by idtype. Returns the RxCUIs of concepts associated with that identifier.

The scope of the search is either Active concepts (allsrc=0) or Current concepts (allsrc=1).

Sample ID types and IDs are shown in the following table.

idtypeExample IdDetails
AMPID23080Gold Standard Drug Identifier from Gold Standard Drug Database (SAB:GS)
ANADAANADA200368FDA Abbreviated New Animal Drug Application (ANADA) identifier
ANDAANDA007581FDA Abbreviated New Drug Application (ANDA) identifier
ATCM02AA01Anatomical Therapeutic Chemical (ATC) identifier
BLABLA103821FDA Biologics License Application (BLA) identifier
CVX26Vaccine code
DrugbankDB00295DrugBank identifier
GCN_SEQNO009172Generic Code Sequence Number from First Databank Inc (SAB:NDDF)
GFC108077Generic Formula Code (GFC) from Micromedex RED BOOK (SAB:MMX)
HCPCSJ2710Healthcare Common Procedure Coding System (HCPCS) code (SAB:MMSL)
HIC_SEQN004489ingredient identifier from First Databank Inc (SAB:NDDF)
MMSL_CODECD1001Derived identifier that combines the Multum MediSource Lexicon (SAB:MMSL) Term type (TTY) and code. The first two letters represent the term type: BD, BN, CD, GN or IN.
NADANADA138255FDA New Animal Drug Application (NADA) identifier
NDANDA021400FDA New Drug Application identifier
NDC
  • 00904629161
  • 0781-1506-10
  • 60429-324-77
  • 11523-7020-1
  • 60429-324
  • 11523-7020
  • 0071-0157
National Drug Code (NDC) from the National Drug Code Directory. The function accepts 10 digit NDC forms of 4-4-2 (example: 0781-1506-10), 5-3-2 (example: 60429-324-77) and 5-4-1 (example: 11523-7020-1) and the CMS 11-digit NDC derivative (example: 16571043111). It also accepts 2 segment NDC forms such as 60429-324, 11523-7020, and 0071-0157. It does not accept NDC notation containing asterisks.
NHRIC
  • 10135-652-01
National Health Related Item Code (NHRIC)
SNOMEDCT1039008SNOMED CT concept identifier from the US edition of SNOMED Clinical Terms (SAB:SNOMEDCT_US)
SPL_SET_ID1C5BC1DD-E9EC-44C1-9281-67AD482315D9FDA Structured Product Label Set Identifier
UNII_CODELVX8N1UT73FDA Unique Ingredient Identifier Code.
USPm150United States Pharmacopeia (USP) identifier
VUID4021359Veterans Health Administration Unique Identifier from the Veterans Health Administration National Drug File (SAB:VANDF)

Scope

Selectable (see parameters):

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

  • Current: concepts in the current RxNorm data set that have an atom with SUPPRESS=N

Parameters

ParameterLocationUseDescriptionDefault
formatPathOptional

Notation for results

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

(See getIdTypes for the menu.)

idQueryRequiredIdentifier
allsrcQueryOptionalScope of search
One of:
0
Active concepts
1
Current concepts
0

All query parameters are case-insensitive.

Note that HTTP requires that query parameters be "URL encoded". For full information on URL encoding, please refer to IETF RFC 3986, "Uniform Resource Identifier".

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
idGroup
rxnormId (array)
A concept associated with the requested ID

Example: 2-segment NDC finds multiple concepts

XML: https://rxnav.nlm.nih.gov/REST/rxcui?idtype=NDC&id=0009-7529

JSON: https://rxnav.nlm.nih.gov/REST/rxcui.json?idtype=NDC&id=0009-7529

An XML result is shown below.

<rxnormdata>
    <idGroup>
        <rxnormId>1726321</rxnormId>
        <rxnormId>1726325</rxnormId>
        <rxnormId>1726335</rxnormId>
    </idGroup>
</rxnormdata>