From 6e0f46eb538e0f820494acdcd394ab69e2cf2b90 Mon Sep 17 00:00:00 2001 From: Anh Nguyet Vu Date: Mon, 4 Dec 2023 22:16:36 -0700 Subject: [PATCH] Fix translation --- new_project/new_project_from_json.R | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/new_project/new_project_from_json.R b/new_project/new_project_from_json.R index 17f5631..1328598 100644 --- a/new_project/new_project_from_json.R +++ b/new_project/new_project_from_json.R @@ -73,7 +73,12 @@ setup_from_config <- function(config_file) { command <- paste0('jq \'. += { "studyId" : "', PROJECT_ID, '" }\' ', config_file, ' > tmp.json && mv tmp.json ' , config_file) system(command) - # Register + # Register with some translations + config$studyLeads <- config$PI + config$studyFileviewId <- FILEVIEW_ID + config$studyName <- config$name + config$institutions <- config$institution + config$manifestation <- config$diseaseManifestation nfportalutils::register_study(id = PROJECT_ID, study_meta = config, summary = SUMMARY,