APIs

Prescribable RxNorm API

getRelaTypes

Information returned
RxNorm Relationship types
Service domain
https://rxnav.nlm.nih.gov
HTTP request
GET  /REST/Prescribe/relatypes.xml

Description

Get the relationship names in the RxNorm data set.

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

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
relationTypeList
relationType (array)
Relationship name

Example: Relationship types

XML: https://rxnav.nlm.nih.gov/REST/Prescribe/relatypes

JSON: https://rxnav.nlm.nih.gov/REST/Prescribe/relatypes.json

An XML result is shown below.

<rxnormdata>
    <relationTypeList>
        <relationType>boss_of</relationType>
        <relationType>consists_of</relationType>
        <relationType>constitutes</relationType>
        <relationType>contained_in</relationType>
        <relationType>contains</relationType>
        <relationType>dose_form_of</relationType>
        <relationType>doseformgroup_of</relationType>
        <relationType>form_of</relationType>
        <relationType>has_boss</relationType>
        <relationType>has_dose_form</relationType>
        <relationType>has_doseformgroup</relationType>
        <relationType>has_form</relationType>
        <relationType>has_ingredient</relationType>
        <relationType>has_ingredients</relationType>
        <relationType>has_part</relationType>
        <relationType>has_precise_ingredient</relationType>
        <relationType>has_quantified_form</relationType>
        <relationType>has_tradename</relationType>
        <relationType>ingredient_of</relationType>
        <relationType>ingredients_of</relationType>
        <relationType>inverse_isa</relationType>
        <relationType>isa</relationType>
        <relationType>part_of</relationType>
        <relationType>precise_ingredient_of</relationType>
        <relationType>quantified_form_of</relationType>
        <relationType>reformulated_to</relationType>
        <relationType>reformulation_of</relationType>
        <relationType>tradename_of</relationType>
    </relationTypeList>
</rxnormdata>