Get unlimited public & private packages + team-based management with npm Teams.Learn more »

umlsjs

0.2.1 • Public • Published

umlsjs (For UMLS REST APIs)

About

This is an unofficial package for accessing UMLS REST APIs. The technical documentation for the APIs is available here. You need an API-KEY to access UMLS services. You can apply for the license here.. This is still in early alpha and is not production ready. Please star the GitHub repo to show your interest in this project or contact me.

Install

npm install umlsjs --save

Usage

  • Search
import { UMLSSearch } from 'umlsjs'
const search1 = new UMLSSearch(API_KEY)
search1.init('Erythema Multiforme')
// search1.init('Erythema Multiforme', true) for exact search
await search1.query()
const results = search1.getResults()

search1.nextPage()
await search1.query()
const results = search1.getResults()


  • CUI
    import { CUISearch } from 'umlsjs'
    const search1 = new CUISearch(API_KEY)
    const CUI = 'C0009044'
    search1.init(CUI)
    await search1.query()
    const result = search1.getResult()
    console.log(result.name)

    await search1.getAtoms()
    const result = search1.atoms

    await search1.getDefinitions()
    const result = search1.definitions

    await search1.getRelations()
    const result = search1.relations

Functions

nextPage() | nextPage(2)

More to come

  • UMLSContent
  • UMLSSubsets
  • UMLSSemanticNetwork
  • UMLSContentView
  • UMLSCrosswalk

Want to join development?

  • rename test/api.template.js to api.js and add your API key.
  • Submit PR to the develop branch.

Keywords

Install

npm i umlsjs

DownloadsWeekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

31.2 kB

Total Files

13

Last publish

Collaborators

  • avatar