Create the Demographic Cohort lookup
Source:R/create_demographic_lookup.R
create_demographic_cohorts.Rd
Create the Demographic Cohort lookup
Usage
create_demographic_cohorts(
data,
year,
update = latest_update(),
write_to_disk = TRUE
)
Arguments
- data
A data frame with the required variables.
- year
The year in standard SLF format.
- update
The update to use.
- write_to_disk
Default
TRUE
, will write the lookup to the Cohorts folder defined by get_slf_dir.
See also
Other Demographic and Service Use Cohort functions:
add_operation_flag()
,
assign_cohort_names()
,
assign_d_cohort_mh()
,
assign_death_flag()
,
assign_elective_daycase_instances()
,
assign_elective_inpatient_flag()
,
assign_elective_inpatient_instances()
,
assign_elective_instances()
,
assign_emergency_instances()
,
assign_s_cohort_ae2()
,
assign_s_cohort_community_care()
,
assign_s_cohort_elective_inpatient()
,
assign_s_cohort_geriatric()
,
assign_s_cohort_limited_daycases()
,
assign_s_cohort_maternity()
,
assign_s_cohort_multiple_emergency()
,
assign_s_cohort_outpatient()
,
assign_s_cohort_prescribing()
,
assign_s_cohort_psychiatry()
,
assign_s_cohort_residential_care()
,
assign_s_cohort_routine_daycase()
,
assign_s_cohort_single_emergency()
,
calculate_acute_elective_cost()
,
calculate_acute_emergency_cost()
,
calculate_ae2_cost()
,
calculate_care_home_cost()
,
calculate_community_care_cost()
,
calculate_community_health_cost()
,
calculate_elective_inpatient_cost()
,
calculate_geriatric_cost()
,
calculate_home_care_cost()
,
calculate_hospital_elective_cost()
,
calculate_hospital_emergency_cost()
,
calculate_limited_daycases_cost()
,
calculate_maternity_cost()
,
calculate_multiple_emergency_cost()
,
calculate_outpatient_costs()
,
calculate_prescribing_cost()
,
calculate_psychiatry_cost()
,
calculate_residential_care_cost()
,
calculate_routine_daycase_cost()
,
calculate_single_emergency_cost()
,
create_service_use_cohorts()
,
recalculate_elective_inpatient_cost()