Skip to content
Small tool to query rxnorm and snomed REST API's
Branch: master
Clone or download
seanmcilvenna Removing "test" logic that limits the results in rxnorm queries to 2000
Adding command for diagnostic imaging report service event codes
Latest commit 224a01d May 4, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.README.md Removing "test" logic that limits the results in rxnorm queries to 2000 May 4, 2016
.gitignore Added functionality to query rxnorm using tty, and optionally get cla… May 2, 2016
LICENSE Initial commit May 2, 2016
README.md
createExcel.js
index.js
package.json Removing "test" logic that limits the results in rxnorm queries to 2000 May 4, 2016
rxnorm.js Removing "test" logic that limits the results in rxnorm queries to 2000 May 4, 2016
snomed.js

README.md

term-query

npm license

Small tool to query rxnorm and snomed REST API's

nodei.co

Features

  • Run queries against SNOMED-CT and RXNORM REST APIs
  • Customized RXNORM queries to include brands and classes for each code/concept
  • Commands pre-populated with queries for allergies, medications and body sites

Install

Ensure that Node.JS is installed: https://www.nodejs.org

npm install term-query -g

Usage

Runs the default query for medications against snomed and produces a "medications.xlsx" file:

term-query medications

Runs a query for all "IN+PIN" tty's and outputs them to "allergies.xlsx" file:

term-query rxnorm --tty "IN+PIN" --output "allergies.xlsx"
Command Description
rxnorm Queries RXNorm using custom options
snomed Queries Snomed-CT using custom options
medications Creates a medications list using default options for rxnorm command
problems Creates a problems list using default options for snomed command
allergies Creates an allergies list using default options for rxnorm command
bodySite Creates a bodySite list using default options for snomed command
dirServiceEventCodes Creates a list of diagnostic imaging service event codes

Options:

Option Required Description Type Default
--help No Show help boolean

RxNorm Command Options

Option Required Description Type Default
--help No Show help boolean
--brands, -b No Include brand information for each concept boolean false
--classes, -c No Include class information for each concept boolean false
--output, -o No The name of the file to output the XLSX to string "output.xlsx"
--tty, -t Yes

SNOMED Command Options

Option Required Description Type Default
--help No Show help boolean
--limit, -l No Limits the results returned from the query number 10000
--expression, -x Yes The expression (can be repeated) to run against the SNOMED-CT API string < 91723000 | Anatomical structure (body structure) |
--version, -v No The version of SNOMED-CT to execute string v20160131
--edition, -e No The edition of SNOMED-CT to execute string en-edition

Dependencies

Package Version Dev
q ^1.4.1
request ^2.72.0
request-promise ^3.0.0
simple-rate-limiter ^0.2.3
underscore ^1.8.3
xlsx ^0.8.0
yargs ^4.6.0
node-readme ^0.1.9

References

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.