This is the PRIMED Consortium algorithm to obtain a single Hba1c value per individual to use in analyses. Here is the overall procedures:
1. Extract trait measurements using measurement codes and calculations
2. Convert measurement units to expected units, if necessary (% is unit)
3. Compute a single value per individual for inclusion in analysis (earliest measurement)
4. Apply individual exclusion criteria
5. Apply measurement exclusion criteria, other than statistical outliers
6. Remove statistical outliers
7. Calculate counts of flagged individuals
Measurement codes and calculations can be found in the algorithm document included on this page along with documents for medications and exclusions. Please convert values to percentage. Conversion formula is also present in the algorithm document included.
Statistical outliers will be measurements that are outside +/- 6 SD from the mean of Hba1c in the total population after exclusions.
There are flags that were added, however they can still be in the analysis. This is an additional file consisting of codes used to ascertain these flags.