Skip to content

LiftOffLLC/oq-analyst-sdk

Repository files navigation

oq-analyst-sdk

NodeJS wrapper around OQ-Analyst APIs

Installation

  1. Using PAT
> yarn add git+https://token:x-oauth-basic@github.com/LiftOffLLC/oq-analyst-sdk.git#master

or

> npm install --save git+https://token:x-oauth-basic@github.com/LiftOffLLC/oq-analyst-sdk.git#master
  1. Using SSH
> yarn add git+ssh://git@github.com:LiftOffLLC/oq-analyst-sdk.git#master

or

> npm install git+ssh://git@github.com:LiftOffLLC/oq-analyst-sdk.git#master

Enviroment Setup

In your .env file add the following environment variables (refer .env.example)

OQ_ANALYST_BASE_URL = 
OQ_ANALYST_USERNAME = 
OQ_ANALYST_PASSWORD = 

Sample Code

// import the module
const OQAClient = require("@liftoffllc/oq-analyst");

// initialize the OQAClient
const client = new OQAClient();

// call method, Here fetching all clinicians
client.clinicians.getAll()
  .then(data => console.log(data))
  .catch(err => console.log(err.message));

Usage

// import module
const OQAClient = require("@liftoffllc/oq-analyst");

// initialize oq-analyst client
const client = new OQAClient();

// Clinicians
client.clinicians.getAll() // get all clinicians

// Clients
client.clients.getAll() // get all clients

// Questionnaires
const data = {
  strStartDate: '08/28/2020',
  strEndDate: '08/31/2020',
  MedRecordNumber: 'MRNTEST',
  EpisodeType: 'All',
  InstrumentIDs: '4',
};
client.questionnaires.get(data); // get questionnaires

** Note : This section needs to be updated as adding more features.

Docs Links

About

Wrapper around OQ Analyst APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors