1.2.0 • Published 8 years ago

term-query v1.2.0

Weekly downloads
2
License
Apache License Ve...
Repository
-
Last release
8 years ago

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"
CommandDescription
rxnormQueries RXNorm using custom options
snomedQueries Snomed-CT using custom options
medicationsCreates a medications list using default options for rxnorm command
problemsCreates a problems list using default options for snomed command
allergiesCreates an allergies list using default options for rxnorm command
bodySiteCreates a bodySite list using default options for snomed command
dirServiceEventCodesCreates a list of diagnostic imaging service event codes

Options:

OptionRequiredDescriptionTypeDefault
--helpNoShow helpboolean

RxNorm Command Options

OptionRequiredDescriptionTypeDefault
--helpNoShow helpboolean
--brands, -bNoInclude brand information for each conceptbooleanfalse
--classes, -cNoInclude class information for each conceptbooleanfalse
--output, -oNoThe name of the file to output the XLSX tostring"output.xlsx"
--tty, -tYes

SNOMED Command Options

OptionRequiredDescriptionTypeDefault
--helpNoShow helpboolean
--limit, -lNoLimits the results returned from the querynumber10000
--expression, -xYesThe expression (can be repeated) to run against the SNOMED-CT APIstring< 91723000 | Anatomical structure (body structure) |
--version, -vNoThe version of SNOMED-CT to executestringv20160131
--edition, -eNoThe edition of SNOMED-CT to executestringen-edition

Dependencies

PackageVersionDev
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