Skip to contents

This will read and process the all Care Home extract, it will return the final data and (optionally) write it to disk.

Usage

process_sc_all_care_home(
  data,
  sc_demog_lookup = read_file(get_sc_demog_lookup_path()) %>% slfhelper::get_chi(),
  refined_death = read_file(get_combined_slf_deaths_lookup_path()) %>%
    slfhelper::get_chi(),
  ch_name_lookup_path = get_slf_ch_name_lookup_path(),
  spd_path = get_spd_path(),
  write_to_disk = TRUE
)

Arguments

data

The extract to process

sc_demog_lookup

The Social Care Demographics lookup produced by process_lookup_sc_demographics().

refined_death

The processed lookup of deaths from IT produced with process_refined_death().

ch_name_lookup_path

Path to the Care Home name Lookup Excel workbook.

spd_path

(Optional) Path the Scottish Postcode Directory, default is to use get_spd_path().

write_to_disk

(Optional) Should the data be written to disk default is TRUE i.e. write the data to disk.

Value

the final data as a tibble.