library(LABTNSCPSS)
f <- system.file("extdata", "testpackage.csv", package = "LABTNSCPSS")
col_mapping <- list(
patient_id = "trajectoire_id",
ICD = "diagnostic_code",
start_date = "date_debut",
end_date = "date_fin",
episode_id = "episode_id"
)
res <- run_pipeline(
input_file = f,
col_mapping = col_mapping,
coding_system = "ICD-10-CA",
out_dir = tempdir()
)
names(res)
Run the code above in your browser using DataLab