cprd_uniform_hba1c_values: Transforms hba1c values to mmol/mol

Description Usage Arguments Details Value

View source: R/uniform_units.R

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


rOpenHealth/rEHR documentation built on March 19, 2018, 7:58 a.m.