steno-aarhus / osdc

Open-Source Diabetes Classifier: an R package to classify diabetes status in Danish registers
https://steno-aarhus.github.io/osdc/
Other
1 stars 1 forks source link

Test simpler ways to de-duplication of HbA1c #107

Closed Aastedet closed 2 months ago

Aastedet commented 5 months ago

In the original algorithm, old-unit HbA1c values were filtered out/deduplicated if a new-unit HbA1c value was present on the same date for the same individual.

This can perhaps be simplied to simply deduplicate all HbA1c values taken on the same date regardless of unit. This would align the algorithm more strictly with the recommended diagnostic practice (diabetes diagnosis required two elevated HbA1c values sampled on DIFFERENT dates).

Also mentioned in comment in #101