Skip to content

Instantly share code, notes, and snippets.

@jmhmd
Last active October 5, 2016 15:56
Show Gist options
  • Save jmhmd/07c04f93105ed9f35ab0bd2246a2ac15 to your computer and use it in GitHub Desktop.
Save jmhmd/07c04f93105ed9f35ab0bd2246a2ac15 to your computer and use it in GitHub Desktop.
Query lex.orionmd.com

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
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment