forked from tidepool-org/uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into darinkrauss/dexcom
- Loading branch information
Showing
33 changed files
with
3,796 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,5 @@ coverage | |
|
||
_book/ | ||
web/ | ||
|
||
\.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* global __VERSION_SHA__ */ | ||
|
||
import Rollbar from 'rollbar/dist/rollbar.umd'; | ||
|
||
let rollbar = new Rollbar({ | ||
accessToken: '1843589282464f4facd43f794c8201a8', | ||
captureUncaught: true, | ||
payload: { | ||
environment: 'electron_renderer', | ||
client: { | ||
javascript: { | ||
code_version: __VERSION_SHA__, | ||
guess_uncaught_frames: true | ||
} | ||
} | ||
}, | ||
// to deal with URI's as local filesystem paths, we use the "many domain" transform: | ||
// https://rollbar.com/docs/source-maps/#using-source-maps-on-many-domains | ||
transform: function(payload) { | ||
var trace = payload.body.trace; | ||
if (trace && trace.frames) { | ||
for (var i = 0; i < trace.frames.length; i++) { | ||
var filename = trace.frames[i].filename; | ||
if (filename) { | ||
trace.frames[i].filename = 'http://dynamichost/dist/bundle.js'; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
); | ||
|
||
export default rollbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
## Checklist for CGM Implementation | ||
|
||
(Key: | ||
|
||
- `[x]` available in data protocol/documented in spec and implemented | ||
- `[-]` available in data protocol/documented in spec but *not* yet implemented | ||
- `[?]` unknown whether available in data protocol/documented in spec; *not* yet implemented | ||
- `*[ ]` TODO: needs implementation! | ||
- `[ ]` unavailable in data protocol and/or not documented in spec and not yet implemented) | ||
|
||
### Required if Present | ||
|
||
#### CBG | ||
|
||
- `[x]` cbg values | ||
- `[ ]` units of cbg values (read from device, not hard-coded) | ||
- `[x]` out-of-range values (LO or HI) | ||
- `[x]` out-of-range value thresholds (e.g., often 40 for low and 400 for high on CGMs) | ||
|
||
Device-specific? (Add any device-specific notes/additions here.) | ||
- internal glucose unit is always mg/dL for this device, independent of display unit | ||
- out-of-range thresholds are 41 mg/dL and 499 mg/dL | ||
- out-of-range measurements are reported as values 40 or 500 respectively | ||
|
||
#### Device Events | ||
- `[ ]` calibrations | ||
- `[ ]` calibration value | ||
- `[ ]` units of calibration value (read from device, not hard-coded) | ||
- `[x]` time changes (presence of which is also in the [BtUTC section](#bootstrapping-to-utc) below) | ||
- `[x]` device display time `from` (before change) and `to` (result of change) | ||
- `[x]` agent of change (`automatic` or `manual`) | ||
- `[ ]` timezone | ||
- `[ ]` reason for change (read from device) | ||
|
||
Device-specific? (Add any device-specific notes/additions here.) | ||
- device does not need calibration | ||
|
||
#### Settings | ||
|
||
- `[x]` units preference for BG display | ||
- `[x]` units of data being uploaded (will be mutated to mmol/L storage units if not mmol/L) | ||
- `[x]` transmitter ID | ||
- `[ ]` low alert settings | ||
- `[ ]` enabled | ||
- `[ ]` level/threshold | ||
- `[ ]` snooze threshold | ||
- `[ ]` high alert settings | ||
- `[ ]` enabled | ||
- `[ ]` level/threshold | ||
- `[ ]` snooze threshold | ||
- `[ ]` rate-of-change alerts | ||
- `[ ]` fall rate alert | ||
- `[ ]` enabled | ||
- `[ ]` rate threshold for alerting | ||
- `[ ]` rise rate alert | ||
- `[ ]` enabled | ||
- `[ ]` rate threshold for alerting | ||
- `[ ]` out-of-range alerts | ||
- `[ ]` enabled | ||
- `[ ]` snooze time between alerts | ||
- `[ ]` predictive alerts | ||
- `[ ]` low prediction | ||
- `[ ]` enabled | ||
- `[ ]` time sensitivity (minutes to predicted low for alerting) | ||
- `[ ]` high prediction | ||
- `[ ]` enabled | ||
- `[ ]` time sensitivity (minutes to predicted high for alerting) | ||
- `[ ]` calibration alerts/reminders | ||
- `[ ]` pre-reminder | ||
- `[ ]` overdue alert | ||
|
||
Settings history: | ||
|
||
- `[ ]` device stores all changes to settings OR | ||
- `[x]` device only returns current settings at time of upload | ||
|
||
No Tidepool data model (yet): volume and/or vibrate mode of all alerts (can/should go in `payload`). | ||
|
||
Device-specific? (Add any device-specific notes/additions here.) | ||
|
||
#### "Bootstrapping" to UTC | ||
|
||
- `[x]` index | ||
- `[ ]` UTC timestamp (*Hey, one can dream!*) OR | ||
- `[x]` internal timestamp or persistent log index (across device communication sessions) to order all pump events (regardless of type), independent of device display time OR | ||
- `[ ]` ephemeral log index (does not persist across device communication sessions) to order all pump events (regardless of type), independent of device display time | ||
- `[x]` date & time settings changes | ||
|
||
Device-specific? (Add any device-specific notes/additions here.) | ||
|
||
### No Tidepool Data Model Yet | ||
|
||
> **NB:** You can and should add to this section if there are other data types documented in the device's data protocol specification but not part of Tidepool's data model (yet). | ||
- `[-]` activity/exercise | ||
- `[-]` food (e.g., Dexcom allows logging carb events) | ||
- `[-]` notes/other events | ||
- `[-]` insulin (rapid acting, long term) | ||
|
||
### Tidepool ingestion API | ||
|
||
Choose one of the following: | ||
|
||
- `[x]` legacy "jellyfish" ingestion API | ||
- `*[ ]` platform ingestion API | ||
|
||
### Known implementation issues/TODOs | ||
|
||
*Use this space to describe device-specific known issues or implementation TODOs **not** contained in the above datatype-specific sections.* | ||
|
||
|
||
## Checklist for Blood Glucose Meter Implementation | ||
|
||
### Required if Present | ||
|
||
- `[x]` smbg values | ||
- `[ ]` units of smbg values (read from device, not hard-coded) | ||
- `[x]` out-of-range values (LO or HI) | ||
- `[x]` out-of-range value thresholds (e.g., often 20 for low and 600 for high on BGMs) | ||
- `[x]` date & time settings changes | ||
- `[x]` blood ketone values | ||
- `[ ]` units of blood ketone values (read from device, not hard-coded) | ||
- `[x]` ketone out-of-range values | ||
- `[x]` ketone out-of-range value thresholds | ||
|
||
Device-specific? (Add any device-specific notes/additions here.) | ||
- internal glucose unit is always mg/dL for this device, independent of display unit | ||
- glucose out-of-range thresholds are 41 mg/dL and 499 mg/dL | ||
- glucose out-of-range measurements are reported as values 40 or 500 respectively | ||
- ketone out-of-range upper threshold is 8.0 mmol/L | ||
|
||
### No Tidepool Data Model Yet | ||
|
||
- `[x]` control (solution) tests (whether marked in UI or auto-detected) - until we have a data model, these should be discarded | ||
- `[-]` device settings, other than date & time (e.g., target blood glucose range) | ||
- `[-]` tag/note (e.g., pre- vs. post-meal) | ||
|
||
### Tidepool ingestion API | ||
|
||
Choose one of the following: | ||
|
||
- `[x]` legacy "jellyfish" ingestion API | ||
- `*[ ]` platform ingestion API | ||
|
||
### Known implementation issues/TODOs | ||
|
||
*Use this space to describe device-specific known issues or implementation TODOs **not** contained in the above datatype-specific sections.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.