-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1118 from tidepool-org/release-2.28.0
v2.28.0 (UPLOAD-24, UPLOAD-297, UPLOAD-304 AND UPLOAD-313)
- Loading branch information
Showing
78 changed files
with
1,407 additions
and
183 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
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,39 @@ | ||
## Checklist for Blood Glucose Meter 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 | ||
|
||
- `[x]` smbg values | ||
- `[x]` 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) | ||
- `[ ]` date & time settings changes | ||
- `[ ]` blood ketone values | ||
- `[ ]` units of blood ketone values (read from device, not hard-coded) | ||
- `[ ]` ketone out-of-range values | ||
- `[ ]` ketone out-of-range value thresholds | ||
- `[x]` use `common.checkDeviceTime(currentDeviceTime, timezone, cb)` to check against server time | ||
|
||
### 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: | ||
|
||
- `[ ]` legacy "jellyfish" ingestion API | ||
- `[x]` 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
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,74 @@ | ||
{ | ||
"extends": "airbnb", | ||
"parser": "babel-eslint", | ||
"plugins": ["lodash"], | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
}, | ||
"rules": { | ||
"max-len": "warn", | ||
"import/order": "warn", | ||
"no-plusplus": [ | ||
"error", | ||
{ | ||
"allowForLoopAfterthoughts": true | ||
} | ||
], | ||
"lodash/prefer-lodash-method": "off", | ||
"arrow-parens": "warn", | ||
"operator-linebreak": "warn", | ||
"no-else-return": "warn", | ||
"object-curly-newline": "warn", | ||
"implicit-arrow-linebreak": "warn" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"bayerContourNext.js", | ||
], | ||
"rules": { | ||
"func-names": "warn", | ||
"no-var": "warn", | ||
"vars-on-top": "warn", | ||
"no-unused-vars": "warn", | ||
"object-shorthand": "warn", | ||
"comma-dangle": "warn", | ||
"space-before-function-paren": "warn", | ||
"no-param-reassign": "warn", | ||
"prefer-template": "warn", | ||
"no-useless-escape": "warn", | ||
"keyword-spacing": "warn", | ||
"indent": "warn", | ||
"spaced-comment": "warn", | ||
"eqeqeq": "warn", | ||
"space-infix-ops": "warn", | ||
"prefer-arrow-callback": "warn", | ||
"no-shadow": "warn", | ||
"array-bracket-spacing": "warn", | ||
"no-use-before-define": "warn", | ||
"no-else-return": "warn", | ||
"no-bitwise": "warn", | ||
"consistent-return": "warn", | ||
"no-plusplus": "warn", | ||
"no-continue": "warn", | ||
"no-loop-func": "warn", | ||
"object-curly-spacing": "warn", | ||
"key-spacing": "warn", | ||
"padded-blocks": "warn", | ||
"no-console": "warn", | ||
"no-multi-spaces": "warn", | ||
"no-mixed-operators": "warn", | ||
"max-len": "warn", | ||
"prefer-destructuring": "warn", | ||
"no-buffer-constructor": "warn", | ||
"no-restricted-syntax": "warn", | ||
"camelcase": "warn", | ||
"no-underscore-dangle": "warn" | ||
} | ||
} | ||
], | ||
"settings": { | ||
"lodash": 3, | ||
"import/resolver": node | ||
} | ||
} |
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,62 @@ | ||
/* | ||
* == BSD2 LICENSE == | ||
* Copyright (c) 2020, Tidepool Project | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
* the terms of the associated License, which is identical to the BSD 2-Clause | ||
* License as published by the Open Source Initiative at opensource.org. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the License for more details. | ||
* | ||
* You should have received a copy of the License along with this program; if | ||
* not, you can obtain one from Tidepool Project at tidepool.org. | ||
* == BSD2 LICENSE == | ||
*/ | ||
|
||
export const ASCII_CONTROL = { | ||
ACK: 0x06, | ||
CR: 0x0D, | ||
ENQ: 0x05, | ||
EOT: 0x04, | ||
ETB: 0x17, | ||
ETX: 0x03, | ||
LF: 0x0A, | ||
NAK: 0x15, | ||
STX: 0x02, | ||
CAN: 0x18, | ||
}; | ||
|
||
export const MODELS = { | ||
Bayer6200: 'Contour Next Link', // mg/dL | ||
Bayer6210: 'Contour Next Link 2.4', // mg/dL | ||
Bayer6300: 'Contour Next Link', // mmol/L | ||
Bayer7350: 'Contour Next', // mg/dL & mmol/L | ||
Bayer7390: 'Contour USB', // mg/dL | ||
Bayer7410: 'Contour Next USB', // mg/dL & mmol/L | ||
Contour7800: 'Contour Next One', // mg/dL & mmol/L | ||
Bayer7150: 'Contour', | ||
Bayer7160: 'Contour Next EZ', | ||
Bayer7220: 'Contour', | ||
Bayer7600: 'Contour Plus', | ||
}; | ||
|
||
export const COMMANDS = { | ||
READ: [0x52, 0x7c], // R| | ||
WRITE: [0x57, 0x7c], // W| | ||
DATE: [0x44, 0x7c], // D| | ||
TIME: [0x54, 0x7c], // T| | ||
}; | ||
|
||
export const METHODS = { | ||
B: 'whole blood', | ||
P: 'plasma', | ||
C: 'capillary', | ||
}; | ||
|
||
export const MARKS = { | ||
B: 'pre-meal', | ||
A: 'post-meal', | ||
D: 'logbook', | ||
}; |
Oops, something went wrong.