lib/rxnorm.js
function query(base, q, callback) {
    // Added unescape to fix URI errors resulting from hexadecimal escape sequences
    var url = util.format("%s?%s", base, querystring.unescape(querystring.stringify(q)));
    request(url, function (err, response) {
        if (err) return callback(err);
        callback(null, response.body);
    });
}
function query(base, q, callback) {
    // Added unescape to fix URI errors resulting from hexadecimal escape sequences
    var url = util.format("%s?%s", base, querystring.unescape(querystring.stringify(q)));
    request(url, function (err, response) {
        if (err) return callback(err);
        callback(null, response.body);
    });
}
function query ( base , q , callback ) { // Added unescape to fix URI errors resulting from hexadecimal escape sequences var url = util . format ( "%s?%s" , base , querystring . unescape ( querystring . stringify ( q ) ) ) ; request ( url , function ( err , response ) { if ( err ) return callback ( err ) ; callback ( null , response . body ) ; } ) ; }
generic GET query with any endpoint
generic GET query with any endpoint