The utility library for QALY Lookup from the microsimulation result
- in order to use a versioned release of this project directly from github, simply add the following line to the
dependencies
section of the filepackage.json
in the Knowledge Object, or any other node project:"dependencies": { "@kgrid/qalyutil": "https://github.com/kgrid-lab/qalyutil/releases/download/v1.2.0/kgrid-qalyutil-1.2.0.tgz" }
- to do a release, simply run
npm pack
in the top level of the codebase, and create a release on github with the zipped code.
- To use the code directly from the main branch, you can link directly to the github repo page like so:
"dependencies": { "@kgrid/qalyutil": "https://github.com/kgrid-lab/qalyutil" }
- After including the link above in the
package.json
file, you'll have to runnpm install
to actually fetch the package. - Then, you should be able to import the main method with the following import in your code:
const qalyoutcome = require('@kgrid/qalyutil/qalyoutcome')
- the arguments to the main method are the following:
qalyoutcome(PATH_TO_CSV_DIRECTORY, CONFIG.JSON, PATIENT_OBJECT)