From af8bdd2bcfa1050be693512f16c09760bb11e4f3 Mon Sep 17 00:00:00 2001 From: Thomas OBADIA <tobadia@ML22-0166.local> Date: Mon, 4 Nov 2024 11:41:33 +0100 Subject: [PATCH] Prepare new script to merge data from INVENTORY phase into OBSERVATIONAL databases. The script is currently empty and contains just enough things to get the databases from servers (ahead of switching back to my now-repaired laptop). --- ...BSERVATIONAL_02_merge_inventory_metadata.R | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 02_OBSERVATIONAL/OBSERVATIONAL_02_merge_inventory_metadata.R diff --git a/02_OBSERVATIONAL/OBSERVATIONAL_02_merge_inventory_metadata.R b/02_OBSERVATIONAL/OBSERVATIONAL_02_merge_inventory_metadata.R new file mode 100644 index 0000000..f112c0c --- /dev/null +++ b/02_OBSERVATIONAL/OBSERVATIONAL_02_merge_inventory_metadata.R @@ -0,0 +1,36 @@ +## OBSERVATIONAL_02_merge_inventory_metadata.R +## Date : 2024/10/17 +## Author : Thomas Obadia +## +## At the population inventory phase, many descriptors including +## GPS coordinates of houses were taken. +## The subset of individuals enrolled in the observational study +## will make use of these metadata to link with epidemiological and +## clinical data such as lab results, malaria prevalence etc. +## +## This script will amend the data from the observational databases +## with descriptors from the inventory databases, using the ID +## allocated at inventory phase. +###################################################################### + + + + + +###################################################################### +### SOURCE THE DATABASES +###################################################################### +if (!exists("DATA_EXTRACT_IS_RECENT_OBS") || !DATA_EXTRACT_IS_RECENT_OBS) { + cat("Databases are outdated and will be dumped again.\n") + source("./01_INVENTORY/INVENTORY_02_list_all_inventory_participants.R") + source("./01_INVENTORY/INVENTORY_03_list_all_inventory_houses.R") + source("./02_OBSERVATIONAL/OBSERVATIONAL_01_dump_REDCap_database.R") +} + + + + + +###################################################################### +### +###################################################################### -- GitLab