Function to to read the text form of resource use and replace it with standard texts of resoure use ie. some one can describe GP visit as GP surgery visit, surgery visit or general practioners visit etc. Here all these texts should be given in a excel or csv file and then corresponidng standard form will be read from the file and will be replaced.
map_resource_use_categories(
the_data,
service_actual,
new_column,
mapped_data,
mapped_use,
analysis,
replace_only,
relevant_column = NULL,
check_value_relevant = NULL,
nhs_use_column = NULL,
check_value_nhs_use = NULL
)
the data with added sum
the data where the observations are held
columna name of the actual service use
the name of the column where the mapped resource use to be
data where the service name and mapped service name has been stored
columan name of mapped resource use in mapped_data
base case or secondary
if we want to replace only certain resource use
the name of the column where the mapped resource use is indicated as relevant or not
how is the mapped resource is indicated as relevant by a value
the name of the column where the mapped resource use comes under NHS or not
value that is used to indicated the nhs use