UNPKG

rxnav-api

Version:

promise-based interface to RXNAV to access RxNorm and other interesting medical information

21 lines (17 loc) 430 B
# example: version # ## usage: version ## ### node ### ``` const {RxnavApi} = require('rxnav-api') new RxnavApi().rxterms().allConcepts() .then((res) => { console.log(JSON.stringify(res)) console.log(`Number found: ${res.minConceptGroup.minConcept.length}`) }) .catch(err => console.log(`err=${err}`)) ``` ### output ### ``` ...lots of output Number found: 20964 ```