measurment-spec-jan-13-2021.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @Vijay
  2. ----------------------------------------------------
  3. SELECT * FROM measurement LEFT JOIN client_bdt_measurement LEFT JOIN bdt_measurement
  4. SELECT * FROM measurement WHERE month = "MONTH_SELECTOR_VALUE":
  5. Vital Graph
  6. Month Selector
  7. BP Graph: (shows the thresholds min/max and values outside this range will be highlighted)
  8. <....>
  9. Weight Graph:
  10. <....>
  11. ----------------------------------------------------
  12. Allow me to double click any of the numbers and popup modal to UPDATE this measurement entry::
  13. * Stamp it (STATUS = "ACK") --> [Stamp] JS powered refresh of the data.
  14. * Declare it to be wrong (STATUS = "INVALID_ACK")
  15. ----------------------------------------------------
  16. Measurements subpage in the client
  17. ----------------------------------------------------
  18. @Josh
  19. ALTER TABLE measurement ADD COLUMN IF NOT EXISTS effective_time TIMESTAMP WITH TIME ZONE;
  20. UPDATE measurement SET effective_time = (SELECT ts WHATEVER SINCE 1970)
  21. BLOOD PRESSURE has this as its alert arch.
  22. sbp_value_alert_threshold_max 140
  23. sbp_value_alert_threshold_max_memo
  24. dbp_value_alert_threshold_max 110
  25. dbp_value_alert_threshold_max_memo
  26. sbp_value_alert_threshold_min 90
  27. sbp_value_alert_threshold_min_memo
  28. dbp_value_alert_threshold_min 70
  29. dbp_value_alert_threshold_min_memo
  30. ----------------------------------------------------