From 813a73af775264c69a9f4a8d66d7d89c597b60e0 Mon Sep 17 00:00:00 2001 From: Milan Malfait <38256462+milanmlft@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:49:10 +0100 Subject: [PATCH] Set up template for public version of app --- .env.sample | 2 +- .gitignore | 2 +- public.env.sample | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 public.env.sample diff --git a/.env.sample b/.env.sample index 50742d9..7cf3745 100644 --- a/.env.sample +++ b/.env.sample @@ -1,5 +1,5 @@ ENV=test -DATA_VOLUME_PATH=./data/test_data +DATA_VOLUME_PATH=./data/test_data/internal # For preprocessing PREPROCESS_DB_NAME= # name of the source database diff --git a/.gitignore b/.gitignore index 6636cf0..2e234c7 100644 --- a/.gitignore +++ b/.gitignore @@ -49,4 +49,4 @@ po/*~ rsconnect/ !dev -.env +*.env diff --git a/public.env.sample b/public.env.sample new file mode 100644 index 0000000..102ce68 --- /dev/null +++ b/public.env.sample @@ -0,0 +1,17 @@ +ENV=test +DATA_VOLUME_PATH=./data/test_data/public + +# For preprocessing +PREPROCESS_DB_NAME= # name of the source database +PREPROCESS_HOST= # host address for the source database +PREPROCESS_PORT= # port on which to connect to the source database +PREPROCESS_DB_USERNAME= # username for the source database +PREPROCESS_DB_PASSWORD= # password for the source database +PREPROCESS_DB_CDM_SCHEMA= # Schema name in the database to connect the OMOP CDM to + +# Low-frequency replacement +LOW_FREQUENCY_THRESHOLD=10 +LOW_FREQUENCY_REPLACEMENT=5 + +# For testing +TEST_DB_PATH=./data-raw/test_db/eunomia