View source: R/add_ethnicity.R
add_ethnicity | R Documentation |
Ethnicity Coding
add_ethnicity(obs, codelist, fieldnames)
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 |
data.table() of matched patient ids with ethnicity columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.