Prescribable RxNorm API
getGenericProduct
- Information returned
- Unbranded RxCUI corresponding to a possibly branded product RxCUI
- Service domain
- https://rxnav.nlm.nih.gov
- HTTP request
- GETÂ /REST/Prescribe/rxcui/rxcui/generic.xml
Description
Translates a branded product RxCUI to the corresponding unbranded product RxCUI (for clinical-analytics purposes), or returns a given unbranded-product RxCUI as-is.
| TTY of given rxcui parameter | TTY of result RxCUI |
|---|---|
| BPCK | GPCK |
| SBD | SCD |
| SCD | SCD (same RxCUI) |
| GPCK | GPCK (same RxCUI) |
Scope
Active: concepts in the current RxNorm data set that have an atom with SAB=RXNORM and SUPPRESS=N
Parameters
| Parameter | Location | Use | Description | Default |
|---|---|---|---|---|
| rxcui | Path | Required | RxNorm identifier of a product (SCD, SBD, GPCK, BPCK) | |
| format | Path | Optional | Notation for results One of:
| .xml |
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
- minConceptGroup
- minConcept (array)
- RxNorm concept
- rxcui
- RxNorm identifier
- name
- Concept name from SAB=RXNORM
- tty
- Term type
Example: Translate SBD to SCD
XML: https://rxnav.nlm.nih.gov/REST/rxcui/212446/generic
JSON: https://rxnav.nlm.nih.gov/REST/rxcui/212446/generic.json
An XML result is shown below.
<rxnormdata>
<minConceptGroup>
<minConcept>
<rxcui>308460</rxcui>
<name>azithromycin 250 MG Oral Tablet</name>
<tty>SCD</tty>
</minConcept>
</minConceptGroup>
</rxnormdata>