using facility claim data, left join by member id

readmission(
  original_data,
  std_data_root = wd$std_data_root,
  fac_clm_folder = "fac_clm",
  emergent_admission_medpar_claim_ids,
  year = 2007,
  max_year = 2018
)

Arguments

original_data

data to add on

std_data_root

data path to the standardized data folder

fac_clm_folder

facility claim folder name

emergent_admission_medpar_claim_ids

a list of all emergent MedPAR admission claim IDs

year

select one year to process, e.g. 2007

max_year

the most recent medicare year we have; for example, in 2020, we have Medpar processed up to 2018

Value

Details

  1. Find the 30-day readmission, maybe multiple readmission

  2. Roll up to a single row per member_id & prof_calim_id

  3. Merge the 30-day readmission flag back to the main analytic file

  4. readmission to emergent inpatient admission