cprd_uniform_hba1c_values: Transforms hba1c values to mmol/mol

Description Usage Arguments Details Value

Description

This function converts hba1c and fructosamine values to comon mmol/mol values conversions: mmol/L, mg/dL, fructosamine Assumes doctor miscoding for values < 20 after previous transformations

Usage

1

Arguments

df

a dataframe of hba1c test scores

Details

The input dataframe must include the data2, data3 and enttype columns and the enttype must equal either 275 (HbA1C) or 356 (Fructosamine)

Value

dataframe with all hba1c values recoded to mmol/mol


rEHR documentation built on Jan. 23, 2017, 1 p.m.