Orion Medical

Lex Search

Fast search of standardized lexicons like ICD10 and Radlex using node.js + express.js, Twitter typeahead.js and ElasticSearch

Inspired by ClinDesk icd10 search, but doing the searching server side to avoid needing to download a multi-MB file to the client. This also theoretically allows many more lexicons to be added without affecting performance on the client.

Source and docs: http://github.com/jmhmd/lex-search

Demo

Search Lexicons

Selections


Want to query the engine with your own client?

Send request:

GET http://lex.orionmd.com/search?l=lexicon&q=query_string

Query string parameters:
l: 'icd10'|'radlex' (String, optional) Lexicon - leaving this parameter out will search a combined corpus of all supported lexicons
q: 'string query' (String, required) Search string

Response:

{
  "result": [
    {
      "doc": {
        "i": "RID29047", // unique lexicon identifier
        "d": "basal zone of heart", // description
        "n": [
          "base of heart" // any alternatives or synonyms
        ]
      },
      "score": 0.7111716350014935 // match score
    },
    {...},
  ],
  "lexicon": "combined", // name of lexicon searched
  "perf": {
    "numSearched": 86767, // number of records searched
    "milliseconds": 62 // time elapsed for search
  }
}
view raw query.md hosted with ❤ by GitHub