Skip to content

Commit

Permalink
TODOs around history record flags in Insulet driver
Browse files Browse the repository at this point in the history
  • Loading branch information
jebeck committed Aug 6, 2015
1 parent a1ae245 commit c28a5ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/drivers/insuletDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,23 @@ module.exports = function (config) {
};

var LOG_FLAGS = {
// TODO: look for this flag and use it to identify
// extended boluses split over midnight instead of uploading
// them separately and annotating the extended with the
// 'insulet/bolus/split-extended' code as we're doing now
CARRY_OVER_FLAG: { value: 0x01, name: 'CARRY_OVER_FLAG' },
NEW_DAY_FLAG: { value: 0x02, name: 'NEW_DAY_FLAG' },
// TODO: we should probably look for this flag on all records
// and maybe annotate when we find it
IN_PROGRESS_FLAG: { value: 0x04, name: 'IN_PROGRESS_FLAG' },
END_DAY_FLAG: { value: 0x08, name: 'END_DAY_FLAG' },
// TODO: we should probably look for this flag on all records
// and either annotate or maybe even discard the record when we find it
UNCOMFIRMED_FLAG: { value: 0x10, name: 'UNCOMFIRMED_FLAG' },
REVERSE_CORR_FLAG: { value: 0x0100, name: 'REVERSE_CORR_FLAG' },
MAX_BOLUS_FLAG: { value: 0x0200, name: 'MAX_BOLUS_FLAG' },
// TODO: check if we're filtering out records marked with this flag
// the spec says these are "deleted" and should be ignored
ERROR: { value: 0x80000000, name: 'ERROR' }
};

Expand Down

0 comments on commit c28a5ca

Please sign in to comment.