update_independent: Update independent sector providers and independent sector...

View source: R/update_orgs_dcs.R

update_independentR Documentation

Update independent sector providers and independent sector sites.

Description

This function takes two csv files: ephp.csv and ephpsite.csv limits data to the specified organisation(s) then exports to zip files. The returned .csv files must have characters for all variables otherwise upload to the DCS will fail. The returned zip files can be used to upload to the HCAI DCS to update organisation mappings.

Usage

update_independent(
  organisation,
 
    input_file_path = "K:/Mandatory databases/maintaining_new_org_structure_new/ods_files/",
 
    output_file_path = "K:/Mandatory databases/maintaining_new_org_structure_new/ods_files/updates/"
)

Arguments

organisation

A character giving the organisation to be updated.

input_file_path

A character string giving the path to the ods csv files, but without specifying the csv file itself.

output_file_path

A character string giving the path where outputs will be saved.

Value

Four files, two csv and two zip for each ephp and ephpsite files.

Examples

## Not run: 
 update_independent("AXG")

## End(Not run)

PublicHealthEngland/hcaidcs documentation built on Jan. 19, 2024, 8:38 a.m.