Skip to content

Commit

Permalink
Update running process manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennit07 committed Jul 2, 2024
1 parent 623b222 commit d319c85
Show file tree
Hide file tree
Showing 7 changed files with 483 additions and 14 deletions.
71 changes: 69 additions & 2 deletions Run_SLF_Files_manually/run_episode_file_1718.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,77 @@ library(createslf)

year <- "1718"

processed_data_list <- targets::tar_read("processed_data_list_1718",
store = fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")
targets_store <- fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")

processed_data_list <- list(
acute = targets::tar_read(
"source_acute_extract_1718",
store = targets_store
),
ae = targets::tar_read(
"source_ae_extract_1718",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_1718",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_1718",
store = targets_store
),
dn = targets::tar_read(
"source_dn_extract_1718",
store = targets_store
),
deaths = targets::tar_read(
"source_nrs_deaths_extract_1718",
store = targets_store
),
homelessness = targets::tar_read(
"source_homelessness_extract_1718",
store = targets_store
),
maternity = targets::tar_read(
"source_maternity_extract_1718",
store = targets_store
),
mental_health = targets::tar_read(
"source_mental_health_extract_1718",
store = targets_store
),
outpatients = targets::tar_read(
"source_outpatients_extract_1718",
store = targets_store
),
gp_ooh = targets::tar_read(
"source_ooh_extract_1718",
store = targets_store
),
prescribing = targets::tar_read(
"source_prescribing_extract_1718",
store = targets_store
),
care_home = targets::tar_read(
"source_sc_care_home_1718",
store = targets_store
),
home_care = targets::tar_read(
"source_sc_home_care_1718",
store = targets_store
),
at = targets::tar_read(
"source_sc_alarms_tele_1718",
store = targets_store
),
sds = targets::tar_read(
"source_sc_sds_1718",
store = targets_store
)
)

# Run episode file
create_episode_file(processed_data_list, year = year) %>%
process_tests_episode_file(year = year)

## End of Script ##
71 changes: 69 additions & 2 deletions Run_SLF_Files_manually/run_episode_file_1819.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,77 @@ library(createslf)

year <- "1819"

processed_data_list <- targets::tar_read("processed_data_list_1819",
store = fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")
targets_store <- fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")

processed_data_list <- list(
acute = targets::tar_read(
"source_acute_extract_1819",
store = targets_store
),
ae = targets::tar_read(
"source_ae_extract_1819",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_1819",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_1819",
store = targets_store
),
dn = targets::tar_read(
"source_dn_extract_1819",
store = targets_store
),
deaths = targets::tar_read(
"source_nrs_deaths_extract_1819",
store = targets_store
),
homelessness = targets::tar_read(
"source_homelessness_extract_1819",
store = targets_store
),
maternity = targets::tar_read(
"source_maternity_extract_1819",
store = targets_store
),
mental_health = targets::tar_read(
"source_mental_health_extract_1819",
store = targets_store
),
outpatients = targets::tar_read(
"source_outpatients_extract_1819",
store = targets_store
),
gp_ooh = targets::tar_read(
"source_ooh_extract_1819",
store = targets_store
),
prescribing = targets::tar_read(
"source_prescribing_extract_1819",
store = targets_store
),
care_home = targets::tar_read(
"source_sc_care_home_1819",
store = targets_store
),
home_care = targets::tar_read(
"source_sc_home_care_1819",
store = targets_store
),
at = targets::tar_read(
"source_sc_alarms_tele_1819",
store = targets_store
),
sds = targets::tar_read(
"source_sc_sds_1819",
store = targets_store
)
)

# Run episode file
create_episode_file(processed_data_list, year = year) %>%
process_tests_episode_file(year = year)

## End of Script ##
71 changes: 69 additions & 2 deletions Run_SLF_Files_manually/run_episode_file_1920.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,77 @@ library(createslf)

year <- "1920"

processed_data_list <- targets::tar_read("processed_data_list_1920",
store = fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")
targets_store <- fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")

processed_data_list <- list(
acute = targets::tar_read(
"source_acute_extract_1920",
store = targets_store
),
ae = targets::tar_read(
"source_ae_extract_1920",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_1920",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_1920",
store = targets_store
),
dn = targets::tar_read(
"source_dn_extract_1920",
store = targets_store
),
deaths = targets::tar_read(
"source_nrs_deaths_extract_1920",
store = targets_store
),
homelessness = targets::tar_read(
"source_homelessness_extract_1920",
store = targets_store
),
maternity = targets::tar_read(
"source_maternity_extract_1920",
store = targets_store
),
mental_health = targets::tar_read(
"source_mental_health_extract_1920",
store = targets_store
),
outpatients = targets::tar_read(
"source_outpatients_extract_1920",
store = targets_store
),
gp_ooh = targets::tar_read(
"source_ooh_extract_1920",
store = targets_store
),
prescribing = targets::tar_read(
"source_prescribing_extract_1920",
store = targets_store
),
care_home = targets::tar_read(
"source_sc_care_home_1920",
store = targets_store
),
home_care = targets::tar_read(
"source_sc_home_care_1920",
store = targets_store
),
at = targets::tar_read(
"source_sc_alarms_tele_1920",
store = targets_store
),
sds = targets::tar_read(
"source_sc_sds_1920",
store = targets_store
)
)

# Run episode file
create_episode_file(processed_data_list, year = year) %>%
process_tests_episode_file(year = year)

## End of Script ##
71 changes: 69 additions & 2 deletions Run_SLF_Files_manually/run_episode_file_2021.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,77 @@ library(createslf)

year <- "2021"

processed_data_list <- targets::tar_read("processed_data_list_2021",
store = fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")
targets_store <- fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")

processed_data_list <- list(
acute = targets::tar_read(
"source_acute_extract_2021",
store = targets_store
),
ae = targets::tar_read(
"source_ae_extract_2021",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_2021",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_2021",
store = targets_store
),
dn = targets::tar_read(
"source_dn_extract_2021",
store = targets_store
),
deaths = targets::tar_read(
"source_nrs_deaths_extract_2021",
store = targets_store
),
homelessness = targets::tar_read(
"source_homelessness_extract_2021",
store = targets_store
),
maternity = targets::tar_read(
"source_maternity_extract_2021",
store = targets_store
),
mental_health = targets::tar_read(
"source_mental_health_extract_2021",
store = targets_store
),
outpatients = targets::tar_read(
"source_outpatients_extract_2021",
store = targets_store
),
gp_ooh = targets::tar_read(
"source_ooh_extract_2021",
store = targets_store
),
prescribing = targets::tar_read(
"source_prescribing_extract_2021",
store = targets_store
),
care_home = targets::tar_read(
"source_sc_care_home_2021",
store = targets_store
),
home_care = targets::tar_read(
"source_sc_home_care_2021",
store = targets_store
),
at = targets::tar_read(
"source_sc_alarms_tele_2021",
store = targets_store
),
sds = targets::tar_read(
"source_sc_sds_2021",
store = targets_store
)
)

# Run episode file
create_episode_file(processed_data_list, year = year) %>%
process_tests_episode_file(year = year)

## End of Script ##
71 changes: 69 additions & 2 deletions Run_SLF_Files_manually/run_episode_file_2122.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,77 @@ library(createslf)

year <- "2122"

processed_data_list <- targets::tar_read("processed_data_list_2122",
store = fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")
targets_store <- fs::path("/conf/sourcedev/Source_Linkage_File_Updates/", "_targets")

processed_data_list <- list(
acute = targets::tar_read(
"source_acute_extract_2122",
store = targets_store
),
ae = targets::tar_read(
"source_ae_extract_2122",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_2122",
store = targets_store
),
cmh = targets::tar_read(
"source_cmh_extract_2122",
store = targets_store
),
dn = targets::tar_read(
"source_dn_extract_2122",
store = targets_store
),
deaths = targets::tar_read(
"source_nrs_deaths_extract_2122",
store = targets_store
),
homelessness = targets::tar_read(
"source_homelessness_extract_2122",
store = targets_store
),
maternity = targets::tar_read(
"source_maternity_extract_2122",
store = targets_store
),
mental_health = targets::tar_read(
"source_mental_health_extract_2122",
store = targets_store
),
outpatients = targets::tar_read(
"source_outpatients_extract_2122",
store = targets_store
),
gp_ooh = targets::tar_read(
"source_ooh_extract_2122",
store = targets_store
),
prescribing = targets::tar_read(
"source_prescribing_extract_2122",
store = targets_store
),
care_home = targets::tar_read(
"source_sc_care_home_2122",
store = targets_store
),
home_care = targets::tar_read(
"source_sc_home_care_2122",
store = targets_store
),
at = targets::tar_read(
"source_sc_alarms_tele_2122",
store = targets_store
),
sds = targets::tar_read(
"source_sc_sds_2122",
store = targets_store
)
)

# Run episode file
create_episode_file(processed_data_list, year = year) %>%
process_tests_episode_file(year = year)

## End of Script ##
Loading

0 comments on commit d319c85

Please sign in to comment.