Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
edlu77 committed Feb 16, 2024
1 parent 3272883 commit b298e8e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions website/src/assets/pages/vis6-maps-of-health/vis2.vl.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,27 @@
]
},
{
"calculate": "datum.TIME_FIRST_OD == 253370764800000",
"as": "HAS_FIRST_OD"
"calculate": "datum.OVERDOSES == 0",
"as": "NO_FIRST_OD"
},
{
"calculate": "datum.TIME_FIRST_RX == 253370764800000",
"as": "HAS_FIRST_RX"
"calculate": "datum.TOTAL_PRESCRIPTIONS == 0",
"as": "NO_FIRST_RX"
},
{
"calculate": "datum.HAS_FIRST_OD ? 'N/A' : year(datetime(datum.TIME_FIRST_OD)) + ' Q' + quarter(datetime(datum.TIME_FIRST_OD))",
"calculate": "datum.NO_FIRST_OD ? 'N/A' : year(datetime(datum.TIME_FIRST_OD)) + ' Q' + quarter(datetime(datum.TIME_FIRST_OD))",
"as": "TIME_FIRST_OD_VALUE"
},
{
"calculate": "datum.HAS_FIRST_RX ? 'N/A' : year(datetime(datum.TIME_FIRST_RX)) + ' Q' + quarter(datetime(datum.TIME_FIRST_RX))",
"calculate": "datum.NO_FIRST_RX ? 'N/A' : year(datetime(datum.TIME_FIRST_RX)) + ' Q' + quarter(datetime(datum.TIME_FIRST_RX))",
"as": "TIME_FIRST_RX_VALUE"
},
{
"calculate": "datum.HAS_FIRST_OD ? 'N/A' : -datum.OD_DIFF",
"calculate": "datum.NO_FIRST_OD ? 'N/A' : -datum.OD_DIFF",
"as": "OD_DIFF_VALUE"
},
{
"calculate": "datum.HAS_FIRST_RX ? 'N/A' : -datum.RX_DIFF",
"calculate": "datum.NO_FIRST_RX ? 'N/A' : -datum.RX_DIFF",
"as": "RX_DIFF_VALUE"
}
],
Expand Down

0 comments on commit b298e8e

Please sign in to comment.