NodeJS wrapper around OQ-Analyst APIs
> yarn add git+https://token:[email protected]/LiftOffLLC/oq-analyst-sdk.git#master
or
> npm install --save git+https://token:[email protected]/LiftOffLLC/oq-analyst-sdk.git#master
> yarn add git+ssh://[email protected]:LiftOffLLC/oq-analyst-sdk.git#master
or
> npm install git+ssh://[email protected]:LiftOffLLC/oq-analyst-sdk.git#master
In your .env file add the following environment variables (refer .env.example)
OQ_ANALYST_BASE_URL =
OQ_ANALYST_USERNAME =
OQ_ANALYST_PASSWORD =
// 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));
// 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.