|
| 1 | +[ |
| 2 | + { |
| 3 | + "//": "Extend the vanilla weight_desc widget to change the text descriptions", |
| 4 | + "id": "weight_desc", |
| 5 | + "copy-from": "weight_desc", |
| 6 | + "type": "widget", |
| 7 | + "label": "Weight", |
| 8 | + "style": "text", |
| 9 | + "clauses": [ |
| 10 | + { |
| 11 | + "id": "skeletal", |
| 12 | + "text": "Spooky Scary Skeleton", |
| 13 | + "color": "red", |
| 14 | + "condition": { "compare_int": [ { "u_val": "bmi_permil" }, "<=", { "const": 14000 } ] } |
| 15 | + }, |
| 16 | + { |
| 17 | + "id": "emaciated", |
| 18 | + "text": "Emaciated", |
| 19 | + "color": "light_red", |
| 20 | + "condition": { |
| 21 | + "and": [ |
| 22 | + { "compare_int": [ { "u_val": "bmi_permil" }, ">", { "const": 14000 } ] }, |
| 23 | + { "compare_int": [ { "u_val": "bmi_permil" }, "<=", { "const": 16000 } ] } |
| 24 | + ] |
| 25 | + } |
| 26 | + }, |
| 27 | + { |
| 28 | + "id": "underweight", |
| 29 | + "text": "Bean Pole", |
| 30 | + "color": "yellow", |
| 31 | + "condition": { |
| 32 | + "and": [ |
| 33 | + { "compare_int": [ { "u_val": "bmi_permil" }, ">", { "const": 16000 } ] }, |
| 34 | + { "compare_int": [ { "u_val": "bmi_permil" }, "<=", { "const": 18500 } ] } |
| 35 | + ] |
| 36 | + } |
| 37 | + }, |
| 38 | + { |
| 39 | + "id": "normal", |
| 40 | + "text": "Normal", |
| 41 | + "color": "light_gray", |
| 42 | + "//": "Actually 18.5 - 25", |
| 43 | + "condition": { |
| 44 | + "and": [ |
| 45 | + { "compare_int": [ { "u_val": "bmi_permil" }, ">", { "const": 18500 } ] }, |
| 46 | + { "compare_int": [ { "u_val": "bmi_permil" }, "<=", { "const": 25000 } ] } |
| 47 | + ] |
| 48 | + } |
| 49 | + }, |
| 50 | + { |
| 51 | + "id": "overweight", |
| 52 | + "text": "Big", |
| 53 | + "color": "yellow", |
| 54 | + "condition": { |
| 55 | + "and": [ |
| 56 | + { "compare_int": [ { "u_val": "bmi_permil" }, ">", { "const": 25000 } ] }, |
| 57 | + { "compare_int": [ { "u_val": "bmi_permil" }, "<=", { "const": 30000 } ] } |
| 58 | + ] |
| 59 | + } |
| 60 | + }, |
| 61 | + { |
| 62 | + "id": "obese", |
| 63 | + "text": "Healthy", |
| 64 | + "color": "light_red", |
| 65 | + "condition": { |
| 66 | + "and": [ |
| 67 | + { "compare_int": [ { "u_val": "bmi_permil" }, ">", { "const": 30000 } ] }, |
| 68 | + { "compare_int": [ { "u_val": "bmi_permil" }, "<=", { "const": 35000 } ] } |
| 69 | + ] |
| 70 | + } |
| 71 | + }, |
| 72 | + { |
| 73 | + "id": "very_obese", |
| 74 | + "text": "Husky", |
| 75 | + "color": "red", |
| 76 | + "condition": { |
| 77 | + "and": [ |
| 78 | + { "compare_int": [ { "u_val": "bmi_permil" }, ">", { "const": 35000 } ] }, |
| 79 | + { "compare_int": [ { "u_val": "bmi_permil" }, "<=", { "const": 40000 } ] } |
| 80 | + ] |
| 81 | + } |
| 82 | + }, |
| 83 | + { |
| 84 | + "id": "morbidly_obese", |
| 85 | + "text": "Fluffy", |
| 86 | + "color": "red", |
| 87 | + "condition": { |
| 88 | + "and": [ |
| 89 | + { "compare_int": [ { "u_val": "bmi_permil" }, ">", { "const": 40000 } ] }, |
| 90 | + { "compare_int": [ { "u_val": "bmi_permil" }, "<=", { "const": 45000 } ] } |
| 91 | + ] |
| 92 | + } |
| 93 | + }, |
| 94 | + { |
| 95 | + "id": "morbidly_obese_plus_5", |
| 96 | + "text": "DAYUM", |
| 97 | + "color": "red", |
| 98 | + "condition": { |
| 99 | + "and": [ |
| 100 | + { "compare_int": [ { "u_val": "bmi_permil" }, ">", { "const": 45000 } ] }, |
| 101 | + { "compare_int": [ { "u_val": "bmi_permil" }, "<=", { "const": 50000 } ] } |
| 102 | + ] |
| 103 | + } |
| 104 | + }, |
| 105 | + { |
| 106 | + "id": "morbidly_obese_plus_10", |
| 107 | + "text": "AW HELL NAH", |
| 108 | + "color": "red", |
| 109 | + "condition": { "compare_int": [ { "u_val": "bmi_permil" }, ">", { "const": 50000 } ] } |
| 110 | + } |
| 111 | + ] |
| 112 | + } |
| 113 | +] |
0 commit comments