Usage
define_EHR(start_date = "1930-01-01", end_date = "2014-06-30", patient = list(num = 10000, comorbidity = list(codes = NULL, prevalence = NULL), sim_params = list(transfer_out_prob = 0.2, scale = 25000, weibull_shape = 1, censor_type = "noninformative", betas = list(conditions = NULL, gender = log(0.7), baseline = 0.01, transfer_out = 3.5))), consultation = list(per_year = 2, type = list(code = 0:1, prob = c(0.2, 0.8))), clinical = list(mean_events = 1), referral = list(mean_events = 0.1), therapy = list(mean_events = 1), practice = list(num = 100, regions = 13, imd_cats = 5, early_lcd_prob = 0.1, early_lcd_range = 2, uts_limit = as.Date("1998-01-01"), late_uts_prob = 0.5, late_uts_range = 3))
Arguments
start_date
character date for earliest birthday of patients in EMR ("%Y-%m-%d")
end_date
character date for latest data collection date ("%Y-%m-%d")
patient
list of definitions for patient file (see details)
consultation
list of definitions for consultation file (see details)
clinical
list of definitions for clinical file (see details)
referral
list of definitions for referral file (see details)
therapy
list of definitions for therapy file (see details)
practice
list of definitions for practice file (see details)