freestyle-libre-parser-viewer icon indicating copy to clipboard operation
freestyle-libre-parser-viewer copied to clipboard

Errors when parsing TSV file

Open jcbp opened this issue 5 years ago • 0 comments

Hi, thanks a lot for this project, it is really useful. I was getting some errors when importing my TSV file, and after debugging and making some changes in the file structure, I realized that it fails in the following cases:

  • If the TSV file is generated from an FSL that is configured in a language other than English
  • If the TSV file does not have any food records
  • If the TSV file does not have any insulin records
  • If the TSV file contains the national identification number (in my case is a DNI number from Argentina, I have no idea if this is standardized across all countries). This data is in the second line, before the header and after the patient name

Note: I use the FSL only for glucose measurement but I don't usually use it to record any other data.

Fragment from my TSV file:

Carlos Bertinci
# 12345678
ID	Hora	Tipo de registro	Histórico de glucosa (mg/dL)	Escaneo de glucosa (mg/dL)	Insulina de acción rápida sin valor numérico	Insulina de acción rápida (unidades)	Alimentos sin valor numérico	Carbohidratos (gramos)	Insulina de acción prolongada sin valor numérico	Insulina de acción prolongada (unidades)	Notas	Glucosa de tira (mg/dL)	Cetonas (mmol/L)	No corresponde	No corresponde	No corresponde	Hora anterior	Hora actualizada
16140	2018/06/19 03:16	0	154															
16145	2018/06/19 03:33	0	151															
16146	2018/06/19 03:48	0	155															
16147	2018/06/19 04:03	0	182															
16148	2018/06/19 04:18	0	196															
16149	2018/06/19 04:33	0	187															
16150	2018/06/19 04:48	0	169															
16151	2018/06/19 05:03	0	162															
16152	2018/06/19 05:18	0	159		

jcbp avatar Oct 24 '18 20:10 jcbp