Prescribable RxNorm API
findRxcuiById
- Information returned
- Concepts associated with a specified identifier
- Service domain
- https://rxnav.nlm.nih.gov
- HTTP request
- GETÂ /REST/Prescribe/rxcui.xml?idtype=yourIdtype&id=yourId&allsrc=0or1
Description
Searches for an identifier (id parameter) from an RxNorm vocabulary or attribute 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.
idtype | Example Id | Details |
---|---|---|
ANADA | ANADA200368 | FDA Abbreviated New Animal Drug Application (ANADA) identifier |
ANDA | ANDA007581 | FDA Abbreviated New Drug Application (ANDA) identifier |
BLA | BLA103821 | FDA Biologics License Application (BLA) identifier |
NADA | NADA138255 | FDA New Animal Drug Application (NADA) identifier |
NDA | NDA021400 | FDA New Drug Application identifier |
NDC |
| 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 |
| National Health Related Item Code (NHRIC) |
SPL_SET_ID | 1C5BC1DD-E9EC-44C1-9281-67AD482315D9 | FDA Structured Product Label Set Identifier |
UNII_CODE | LVX8N1UT73 | FDA Unique Ingredient Identifier Code. |
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
Parameter | Location | Use | Description | Default |
---|---|---|---|---|
format | Path | Optional | Notation for results One of:
| .xml |
idtype | Query | Required | Type of identifier (See getIdTypes for the menu.) | |
id | Query | Required | Identifier | |
allsrc | Query | Optional | Scope of search One of:
| 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 Prescribable 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
XML: https://rxnav.nlm.nih.gov/REST/Prescribe/rxcui?idtype=NDC&id=0378-3950-07
JSON: https://rxnav.nlm.nih.gov/REST/Prescribe/rxcui.json?idtype=NDC&id=0378-3950-07
An XML result is shown below.
<rxnormdata> <idGroup> <rxnormId>617312</rxnormId> </idGroup> </rxnormdata>