The pain reporting portal is de-identified patient and survey management system. It allows clinicians to schedule digital surveys to be delivered to patients. As well as allowing clinicians to monitor patient responses to look for possible interventions.
- install Git
- install Node JS
- install MySql
- optionally install Node Gyp dependencies (strongly recommended)
- clone git repository
git clone https://github.com/promisasu/Portal
- open the folder
cd Portal
- run
npm install
- The portal uses the same database as the CNMC PROMIS Application. Please ensure that you have the correct and latest schema. You can find the schema with some sample data in the database folder of this repository. For full dump, please contact the developers or refer to the dropbox.
- run
npm run init
- run
npm run user
. This command sets up the user who gains access to the portal once it's deployed. - Connect to the local MySQL server and run the command
set GLOBAL sql_mode="";
- run
npm run start
- run
npm run status
to view status of all servers - run
npm run log
to view server logs
- run
npm run lint
- run
npm run test
- run
npm run documentation
- open the
documentation
folder in a file explorer - open
index.html
in a browser
Tasks can be run by calling npm run <task>
check
detect outdated or insecure packagesdocumentation
generate code documentationinit
create a server configuration filelint
lint check project fileslint-fix
auto fixes some lint errorslog
view server logsstart
start all servicesstart-dashboard
start dashboard servicestart-scheduler
start scheduler servicestatus
check service statusesstop
stop all servicesstop-dashboard
stop dashboard servicestop-scheduler
stop scheduler servicesync
synchronize database schematest
run the test suiteuser
create a new uservalidate
detect invalid server configuration
##Opioid Equivalance Regarding the new chart that includes opiod equivalence
[1:43] Zena says to use this calculator: http://www.globalrph.com/narcotic.cgi globalrph.com Opioid - Narcotic - Converter opioid converter
[1:43] she will also send me a paper.
[1:43] When putting in values, Hydromorphone == Dilaudid, and Percocet == Oxycodone
[1:44] We already have an Oxycodone, so we will basically map that and Percocet to the same thing dosage wise.
[1:44] Tramadol is also in this calculator. Our other meds (Ibuprofen, Tylenol w/ codeine, naprosyn) can be ignored for this
[1:44] Step 3 should be left at 0%
[1:45] Step 4 - the “Converting To:” should be Morphine
[1:45] Step 1 and Step 4 should use “Oral” not “IV/IM/SC” values
[1:46] If we plug in 2-3 different values for each medication we will see what the multiplier is, and can replicate in our code.