...
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
Note: Please check the bottom of the .JSON content attached above to see the Computations code and formula for KOOS, DASS-21, and HOOS respectively.
Example Computation Code for DASS-21 form
Code Block |
---|
"computations": { "depression": { "display_name": "Depression", "display_order": 1, "type": "symbolic", "function": "q3 + q5 + q10 + q13 + q16 + q17 + q21", "improvement": "decrease" }, "anxiety": { "display_name": "Anxiety", "display_order": 2, "type": "symbolic", "function": "q2 + q4 + q7 + q9 + q15 + q19 + q20", "improvement": "decrease" }, "stress": { "display_name": "Stress", "display_order": 3, "type": "symbolic", "function": "q1 + q6 + q8 + q11 + q12 + q14 + q18", "improvement": "decrease" } } |
In the above example (Line 2-78, computational code for one attribute: Depression),
"computations": {
is the key that informs the system that there are computations to be done in this form."depression":
indicates the attribute whose score will be calculated."display_name": "Depression"
is the text that will be displayed to the patient on the app for this attribute."display_order": 1
indicates that the calculated score for the attribute ‘Depression’ will be displayed first among the three attributes on the score card. The dashboard user can just change the value from '1' here, to any other positive integer value to change the order in which the attributes are displayed on the score card in the form results of a patient, on the dashboard. The order is displayed from left to right and top to bottom for more than three attributes as illustrated below -
Depression ( | Anxiety ( | Stress ( |
|
|
|
|
|
|
"type": "symbolic"
indicates the calculated score will be displayed as an integer value ('-ve', ‘0.0’, '+ve') on the dashboard."function": "q3 + q5 + q10 + q13 + q16 + q17 + q21"
is the computational formula for the attribute ‘Depression’ based on which the score will be calculated."improvement": "decrease"
is used to visualize the calculated score in ‘Green’ or ‘Red’ colour prefixed by an ‘Upward’ or ‘Downward’ arrow. This illustrates a relative comparison of the calculated score across form submissions.
In this case, if the calculated score decreases from the first form submission to the second, it will be shown in green with a downward green arrow in the second form submission. The opposite scenario, i.e., if the calculated scores increase from the first form submission to the second, it will be shown in red with an upward red arrow in the second form submission.
On the other hand,"improvement": "increase"
can be used to achieve the opposite result. Here, if the calculated score decreases from the first form submission to the second, it will be shown in red with an downward red arrow in the second form submission. The opposite scenario, i.e., if the calculated scores increase from the first form submission to the second, it will be shown in green with an upward green arrow in the second form submission.
...