getTermTypes

Information returned
Term types
Service domain
https://rxnav.nlm.nih.gov
HTTP request
GET  /REST/termtypes.xml

Description

Get the valid term types in the RxNorm data set. The returned term types are concept based. Synonym based term types such as TMSY, PSN or SY are not included.

Scope

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

Parameters

ParameterLocationUseDescriptionDefault
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
termTypeList
termType (array)
Requested term type

Example: Concept term types

XML: https://rxnav.nlm.nih.gov/REST/termtypes

JSON: https://rxnav.nlm.nih.gov/REST/termtypes.json

An XML result is shown below.

<rxnormdata>
    <termTypeList>
        <termType>BN</termType>
        <termType>BPCK</termType>
        <termType>DF</termType>
        <termType>DFG</termType>
        <termType>GPCK</termType>
        <termType>IN</termType>
        <termType>MIN</termType>
        <termType>PIN</termType>
        <termType>SBD</termType>
        <termType>SBDC</termType>
        <termType>SBDF</termType>
        <termType>SBDG</termType>
        <termType>SCD</termType>
        <termType>SCDC</termType>
        <termType>SCDF</termType>
        <termType>SCDG</termType>
    </termTypeList>
</rxnormdata>