personalcancertoolkit / openmrs-module-healthybehaviors

An OpenMRS module which tracks health related behaviors of patients and returns advice which improves patient health.
Other
1 stars 2 forks source link

enable command to set cookie to enforce not up to date on a behavior #80

Closed uladkasach closed 7 years ago

uladkasach commented 7 years ago

This would be very useful in demo purposes

uladkasach commented 7 years ago

running the command utils.dev.force_not_uptodate("e", true) will now force uptodate status to be false for exercise. utils.dev.force_not_uptodate("n", true) , for nutrition. utils.dev.force_not_uptodate("e", false) to remove forcing the status to be not up to date.

Note, if the status is already not up to date, these utilities have no effect.