[
  {
    "id": "health_desc_template",
    "type": "widget",
    "style": "clause",
    "clauses": [
      {
        "id": "horrible",
        "text": "Horrible",
        "color": "red",
        "condition": { "compare_num": [ { "u_val": "health" }, "<", { "const": -100 } ] }
      },
      {
        "id": "very_bad",
        "text": "Very bad",
        "color": "light_red",
        "condition": {
          "and": [
            { "compare_num": [ { "u_val": "health" }, ">=", { "const": -100 } ] },
            { "compare_num": [ { "u_val": "health" }, "<", { "const": -50 } ] }
          ]
        }
      },
      {
        "id": "bad",
        "text": "Bad",
        "color": "yellow",
        "condition": {
          "and": [
            { "compare_num": [ { "u_val": "health" }, ">=", { "const": -50 } ] },
            { "compare_num": [ { "u_val": "health" }, "<", { "const": -10 } ] }
          ]
        }
      },
      {
        "id": "ok",
        "text": "OK",
        "color": "light_gray",
        "condition": {
          "and": [
            { "compare_num": [ { "u_val": "health" }, ">=", { "const": -10 } ] },
            { "compare_num": [ { "u_val": "health" }, "<", { "const": 10 } ] }
          ]
        }
      },
      {
        "id": "good",
        "text": "Good",
        "color": "white",
        "condition": {
          "and": [
            { "compare_num": [ { "u_val": "health" }, ">=", { "const": 10 } ] },
            { "compare_num": [ { "u_val": "health" }, "<", { "const": 50 } ] }
          ]
        }
      },
      {
        "id": "very_good",
        "text": "Very good",
        "color": "green",
        "condition": {
          "and": [
            { "compare_num": [ { "u_val": "health" }, ">=", { "const": 50 } ] },
            { "compare_num": [ { "u_val": "health" }, "<", { "const": 100 } ] }
          ]
        }
      },
      {
        "id": "excellent",
        "text": "Excellent",
        "color": "light_green",
        "condition": { "compare_num": [ { "u_val": "health" }, ">=", { "const": 100 } ] }
      }
    ]
  },
  {
    "id": "health_num",
    "type": "widget",
    "label": "Health",
    "var": "health",
    "style": "number",
    "colors": [ "c_red", "c_light_red", "c_light_green", "c_green" ]
  },
  {
    "id": "health_desc",
    "type": "widget",
    "label": "Health",
    "style": "text",
    "copy-from": "health_desc_template"
  }
]
