GithubHelp home page GithubHelp logo

ajflynn / mopen-opioid-collection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kgrid-objects/opioid-collection

0.0 0.0 0.0 19.19 MB

This is a collection of KOs for KGrid that can be used to identify and report on certain features of opioid prescribing

Home Page: http://kgrid.org

Perl 14.01% Python 58.57% Shell 25.52% JavaScript 1.90%

mopen-opioid-collection's Introduction

Michigan OPEN Opioid-related Knowledge Object (KO) Collection

GitHub release

This is a collection of KOs for KGrid that can be used to identify and report on certain features of opioid prescribing. Each KO in this collection uses patient prescription data for its input and provides information about patient prescriptions as its output.

Table of Contents

Getting Started

These instructions will allow you to test drive one or more of the KOs in the MOpen Opioid-related Knowledge Object Collection on our sandbox at Herokuapp.com here. To check if the sandbox is working, you can click here: Heroku KGrid Activator.

Below in this documentation, find each KO's API documentation in the OpenAPI 3.0 specification format. By clicking on the API Documentation link for each KO, the API documentation will be displayed in a Swagger UI tool. Utilizing the example curl or the Swagger UI tool you can test out the interation using each KO.

Knowledge Object Collection

1️⃣ Opioid Use Detector

This KO scans a patient's medication regimen, which is presented to the KO as a list of RxNorm Semantic Clinical Drug codes, for the presence of an opioid prescription. This KO has many potential uses, including one use as a filtering or screening mechanism when applied in the context of health information exchange.

Example API Usage with curl

curl -X POST \
  http://kgrid-activator.herokuapp.com/99999/10101/v0.0.1/opioidDetector \
  -H 'Content-Type: application/json' \
  -d '{"rxcuis":"106500,200240,856917,994226,197446,801958"}'

Example API Response

{
    "result": {
        "condition_satisfied": true,
        "summary": {
            "opioid": true
        },
        "detail": {
            "106500": {
                "opioid": true
            },
            "197446": {
                "opioid": false
            },
            "200240": {
                "opioid": false
            },
            "801958": {
                "opioid": false
            },
            "856917": {
                "opioid": false
            },
            "994226": {
                "opioid": true
            }
        }
    },
    "info": {
        "ko": "99999/10101/v0.0.1",
        "inputs": {
            "rxcuis": "106500,200240,856917,994226,197446,801958"
        }
    }
}

Additional API documentation can be found in the Swagger UI visualation of the OpenAPI specification.

2️⃣ Opioid and Benzodiazepine Detector

This KO scans a list of a patient's prescriptions, which are presented to the KO as a list of RxNorm Semantic Clinical Drug codes, and determines if they are being exposed simultaneously to a known risky combination of an opioid and a benzodiazepine.

Example API Usage with curl

curl -X POST \
  http://kgrid-activator.herokuapp.com/99999/10102/v0.0.1/opioidbzdDetector \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -d '{"rxcuis":"106500,200240,856917,994226,197446,801958"}'

Additional API documentation can be found in the Swagger UI visualation of the OpenAPI specification.

3️⃣ Respiratory Depression Risk Indicator

This KO scans a list of a patient's prescriptions, which are presented to the KO as a list or RxNorm Semantic Clinical Drug Codes, and determines if they are at higher risk for drug-induced respiratory depression because of being exposed simultaneously to a combination of an opioid, a benzodiazepine, and a muscle relaxant.

Example API Usage with curl

curl -X POST \
  http://kgrid-activator.herokuapp.com/99999/10103/v0.0.1/tripleThreatDetector \
  -H 'Content-Type: application/json' \
  -d '{"rxcuis":"106500,200240,856917,994226,197446,801958"}'

Additional API documentation can be found in the Swagger UI visualation of the OpenAPI specification.

Install KOs on KGrid Activator

In order to use the MOpen Opioid Knowledge Object Collection you need to have an instance of the KGrid Activator up and running. To do this, refer to KGrid Activator deployment details. Once you have KGrid Activator up and running you will need to add the MOpen Opioid KOs to the existing shelf.

  1. Download the released MOpen Opiod KOs self (opid_shelf.zip) from github MOpen-Opioid Collection
  2. Place the opid_shelf.zip.zip into the directory where the activator jar is located and unzip. This will place the KOs into existing shelf directory

Directory structure should look similar to the following

 ├── shelf
 │   └── 99999-10103
 │       └── v0.0.1   
 │   └── 99999-10102
 │       └── v0.0.1   
 │   └── 99999-10101
 │       └── v0.0.1   
 └── kgrid-activator-0.6.2.jar

Once on the KGrid Activator shelf the KOs will need to be activated. This is accomplished by calling the executors resource.

curl http://localhost:8080/endpoints

This will load and activate the KOs on the shelf. You should recieve a list of the activated endpoint similar to the following

[
    "99999/10103/v0.0.1/tripleThreatDetector",
    "99999/10101/v0.0.1/opioidDetector",
    "99999/10102/v0.0.1/opioidbzdDetector"
]

Common Issues/Problems

More to come

Roadmap

Current

Planned

Release/Publish KOs

The current released/published MOpen collection is stored on GitHub MOpen Opioid Collection Releases. This zipped ko collection can be installed in an activator as descrided in Install the Michigan OPEN Opioid-related KO Collection

mopen-opioid-collection's People

Contributors

ajflynn avatar gqmeng avatar gregfarris avatar jack-allan avatar kmmcgarry avatar pboisver avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.