Skip to content

Improves form merging, cli output, & table mapping#67

Merged
sangeetabhatia03 merged 10 commits into
mainfrom
prepare-redcap-updates
Apr 17, 2025
Merged

Improves form merging, cli output, & table mapping#67
sangeetabhatia03 merged 10 commits into
mainfrom
prepare-redcap-updates

Conversation

@tristan-myles
Copy link
Copy Markdown
Collaborator

Adds smarter merging of articles when there are form continuations.
Updates the mapping_table using Zika raw column names, reflecting the REDCap uncertainty-capturing update.
Fixes Pathogen filtering bug - NA pathogen columns were erroneously included.
Improves cli output of prepare_redcap.

- Now also checks which columns in the mapping file are not contained in
  the REDCap input - this is useful especially when there are updates to the REDCap schema
- Reduces read_csv verbosity by setting show_col_types to False
- Adds header & cleans get_overflow_mapping_table cli output
- Updates cli output accordingly
- Adds incomplete key (previously hard-coded) & notes_cols to config file
- The way uncertainty is captured in REDCap has been updated and an
  improved mapping is now possible
- Uses raw col names to be consistent with previous mapping
- These have been replaced with different columns following the
  uncertainty capturing update in REDCap
- Parameter uncertainty - single type & Parameter uncertainty - single
  value were swapped
Copy link
Copy Markdown
Collaborator

@sangeetabhatia03 sangeetabhatia03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @tristan-myles
The changes look very good; I have not checked the code or the outputs, just made sure the tasks ran for me and the output messages made sense.

@sangeetabhatia03 sangeetabhatia03 merged commit 1d14dc8 into main Apr 17, 2025
1 of 2 checks passed
@sangeetabhatia03 sangeetabhatia03 deleted the prepare-redcap-updates branch April 17, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants