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
dependenciessection of the filepackage.jsonin 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 packin 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.jsonfile, you'll have to runnpm installto 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)