1.1.2 • Published 6 years ago

flux_notes_treatment_options_rest_client v1.1.2

Weekly downloads
17
License
Unlicense
Repository
-
Last release
6 years ago

flux_notes_treatment_options_rest_client

FluxNotesTreatmentOptionsRestClient - JavaScript client for flux_notes_treatment_options_rest_client FluxNotes Treatment Options Rest Client This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.1
  • Package version: 1.0.1
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install flux_notes_treatment_options_rest_client --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your flux_notes_treatment_options_rest_client from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('flux_notes_treatment_options_rest_client') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/flux_notes_treatment_options_rest_client then install it via:

    npm install YOUR_USERNAME/flux_notes_treatment_options_rest_client --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var FluxNotesTreatmentOptionsRestClient = require('flux_notes_treatment_options_rest_client');

var api = new FluxNotesTreatmentOptionsRestClient.DefaultApi()

var disease = "disease_example"; // {String} disease filter

var opts = { 
  'Race': "race_example", // {String} race filter
  'Dx-Grade': "dxGrade_example", // {String} grade of disease filter
  'ageAtDiagnosis': "ageAtDiagnosis_example", // {String} age at diagnosis filter
  'gender': "gender_example", // {String} patient gender filter
  'stageAtDiagnosis': "stageAtDiagnosis_example", // {String} stage at diagnosis filter
  'mitosisCount': "mitosisCount_example", // {String} mitosis count filter
  'cancerSite': "cancerSite_example", // {String} cancer site filer
  'surgery': "surgery_example", // {String} surgery recieved filter
  'pastTreatments': ["pastTreatments_example"], // {[String]} Treatments recieved in past
  'hemoglobin': "hemoglobin_example", // {String} lab result for hemoglobin filter
  'albumin': "albumin_example", // {String} lab result for albumin filter
  'cD117KIT': "cD117KIT_example", // {String} immunohistochemical finding
  'cD34': "cD34_example", // {String} immunohistochemical finding
  'smoothMuscleActin': "smoothMuscleActin_example", // {String} immunohistochemical finding
  'desmin': "desmin_example", // {String} immunohistochemical finding
  's100': "s100_example", // {String} immunohistochemical finding
  'ki67Index': "ki67Index_example" // {String} immunohistochemical finding
};

api.findTreatmentOptionsByPatientStats(disease, opts, callback).then((res) => { 
	console.log('API Called successfully with response: ', res);
}).catch((error) => { 
	console.log(error);
});

Documentation for API Endpoints

All URIs are relative to http://localhost:3001/api

ClassMethodHTTP requestDescription
FluxNotesTreatmentOptionsRestClient.DefaultApifindTreatmentOptionsByPatientStatsGET /treatmentOptionsGet treatment options given filters
FluxNotesTreatmentOptionsRestClient.DefaultApitreatmentOptionsOptionsOPTIONS /treatmentOptions

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago