Add patient demographics to the analytic file

bene_info(
  original_data,
  std_data_root = wd$std_data_root,
  filter_only_pt_65 = TRUE,
  year
)

Arguments

original_data

data name for the data you want to add the patient info on

std_data_root

data path to the membership info folder

filter_only_pt_65

TRUE: only keep patients ≥65 and ≤99; FLASE: no age limitation

year

select one year to process, e.g. 2007

Details

  1. Add dob, dod, gender and race

  2. Limit the patient population to age 65-99