Incrementing Hidden Values

57 views
Skip to first unread message

Matthew Potter

unread,
Dec 26, 2019, 3:08:20 PM12/26/19
to TiddlyWiki
Hey Folks,

I've been working on something for the past couple hours and I can't seem to get it, 

what I am trying to do is have a score count based on field responses

 right now I have built an assessment worksheet in my tiddlywiki for my patients health results. Everyones health results start at 100, and depending the answers in the input, checkbox and range slections the score slowly goes down depending on their answers

I am thinking the answer looks something like this

<$checkbox tiddler="blood-pressure" actions="something goes here">was your blood pressure recently?</$checkbox>


Mark S.

unread,
Dec 26, 2019, 4:14:57 PM12/26/19
to TiddlyWiki
I think rather than have a field or value change based on a selection, I would have a displayed value that used
the values in the various fields to calculate the result. This way you avoid accidental feedback where the score goes down every time the BP checkbox is clicked/unclicked.

Depending on how advanced your calculations, you might be able to do this with just the TW  math operators. If you're doing the whole Framingham thing, then maybe
you'll need Evan Balster's math kit https://github.com/EvanBalster/TiddlyWikiFormula or some other 3rd party toolkit.

Matthew Potter

unread,
Dec 27, 2019, 5:58:04 PM12/27/19
to TiddlyWiki
Thanks Mark, 

I did it, with actions, by setting a new tiddler with fields, then I add those fields to associate a risk with the patient
Reply all
Reply to author
Forward
0 new messages