diff --git a/lib/drivers/insuletDriver.js b/lib/drivers/insuletDriver.js index d85b52a39b..2dc0869399 100644 --- a/lib/drivers/insuletDriver.js +++ b/lib/drivers/insuletDriver.js @@ -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' } };