add_ethnicity: Ethnicity Coding

View source: R/add_ethnicity.R

add_ethnicityR Documentation

Ethnicity Coding

Description

Ethnicity Coding

Usage

add_ethnicity(obs, codelist, fieldnames)

Arguments

obs

observation data (requires fields obsdate, medcodeid, patientid)

codelist

code list of defined ethnicity medcodes (requires medcodeid and ethnicity columns)

fieldnames

character vector of ethnicity columns to keep from codelist

Value

data.table() of matched patient ids with ethnicity columns


HFAnalyticsLab/aurumpipeline documentation built on April 14, 2023, 12:34 p.m.