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 0000000000000000000000000000000000000000..f112c0c388f26dceefaef8e3897731b4c8a4f6e8 --- /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") +} + + + + + +###################################################################### +### +######################################################################