file_path: Get file path

Description Usage Arguments Value Examples

View source: R/helper_funs.R

Description

Construct the path pointing to the reference file.

Usage

1
file_path(input_indication, file_name)

Arguments

input_indication

The indication of interest. Each indication has a separate folder with set of reference files.

file_name

file name for the reference files.

  • Cases_addition.csv – a list of drugs that are exempt from line advancement when introduced outside the regimen period

  • Cases_episode_gap.csv – a list of drugs that are exempt form gaps in administration that would otherwise advance the line

  • Cases_line_name.csv – a list of drugs that, when switched to during the regimen defining period, will initiate a switch in treatment regimen (ignoring the previous drug that was switched out)

  • Cases_maintenance.csv – a list of drugs that are eligible to make the therapy called a maintenance therapy

  • Cases_substitutions.csv – a list of drugs that are exempt from line advancement when it is substituted to another, usually similar, drug.

  • Ref_med_name.csv – a csv list that contains drug name mappings to a standardized drug naming convention, and also contains indicators to know when a drug should be excluded from the line of therapy business rule implementation.

Value

a character string.

Examples

1
2
3
4
5
## Not run: 
print(file_path(input_indication = "NSCLC", file_name = "cases_additions.csv"))
"../inst/extdata/reference/NSCLC/cases_additions.csv"

## End(Not run)

sutsabs/rwLoT documentation built on Feb. 11, 2022, 12:20 a.m.