From 837dcbd0ced994d4f1ac8c6d6e2871b504278889 Mon Sep 17 00:00:00 2001 From: Gerrit Niezen Date: Thu, 11 Apr 2024 16:03:31 +0100 Subject: [PATCH 1/2] Accu-chek threshold is not known --- lib/drivers/roche/accuChekUSB.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/drivers/roche/accuChekUSB.js b/lib/drivers/roche/accuChekUSB.js index 5ebe1eb9f..68d8bb937 100644 --- a/lib/drivers/roche/accuChekUSB.js +++ b/lib/drivers/roche/accuChekUSB.js @@ -638,20 +638,17 @@ module.exports = (config) => { const record = result; let annotation = null; - // According to user manual, HI > 600 and LO < 20 if (record.value === 0x07FE) { // +INFINITY record.value = 601; annotation = { code: 'bg/out-of-range', value: 'high', - threshold: 600, }; } else if (record.value === 0x0802) { // -INFINITY - record.value = 19; + record.value = 9; // value below known Accu-chek minimum annotation = { code: 'bg/out-of-range', value: 'low', - threshold: 20, }; } @@ -665,6 +662,12 @@ module.exports = (config) => { if (annotation) { annotate.annotateEvent(recordBuilder, annotation); + // BG treshold values are not provided, and we know there are meters + // with different thresholds, e.g. Accu-chek Instant range is 10-600mg/dL + // vs 20-600mg/dL for other meters, so we annotate that threshold is unknown + annotate.annotateEvent(recordBuilder, { + code: 'bg/unknown-value', + }); } const postRecord = recordBuilder.done(); From 333a9467167cd861b8438ed9d42ccde5ae9d7a89 Mon Sep 17 00:00:00 2001 From: Gerrit Niezen Date: Thu, 11 Apr 2024 16:04:06 +0100 Subject: [PATCH 2/2] v2.57.0-accu-chek-threshold.1 --- app/package.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/package.json b/app/package.json index 04ae9655c..a2f2f84ce 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "tidepool-uploader", "productName": "tidepool-uploader", - "version": "2.57.0", + "version": "2.57.0-accu-chek-threshold.1", "description": "Tidepool Project Universal Uploader", "main": "./main.prod.js", "author": { diff --git a/package.json b/package.json index aa3d2ffb1..6735fafad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tidepool-uploader", - "version": "2.57.0", + "version": "2.57.0-accu-chek-threshold.1", "description": "Tidepool Project Universal Uploader", "private": true, "main": "main.prod.js",