Nuns Practicing Misanthropy
    Wondering what’s next for npm?Check out our public roadmap! »

    umlsjs
    TypeScript icon, indicating that this package has built-in type declarations

    0.3.0 • 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.

    Install

    npm install umlsjs --save
    
    

    Usage

    import umlsjs from 'umlsjs'
    
    const search1 = new umlsjs.UMLSSearch(API_KEY)
    search1.init('Erythema Multiforme')
    await search1.query()
    const results = search1.getResults()
    
    const search2 = new umlsjs.CUISearch(process.env.UMLS_API_KEY)
    search2.init('C0009044')
    await search2.query()
    const result = search2.getResult()
    
    await search2.getAtoms()
    const result = search2.atoms
    
    await search2.getDefinitions()
    const result = search2.definitions
    
    await search2.getRelations()
    const result = search2.relations
    

    pagination

    nextPage()
    nextPage(2)
    

    More to come

    • UMLSContent
    • UMLSSubsets
    • UMLSSemanticNetwork
    • UMLSContentView
    • UMLSCrosswalk

    Want to join development?

    • Rename .env.example to .env and add your API key.
    • Submit PR to the develop branch.

    Contributor(s)

    Keywords

    Install

    npm i umlsjs

    DownloadsWeekly Downloads

    1

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    274 kB

    Total Files

    21

    Last publish

    Collaborators

    • avatar