The elements of supertibble$redcap_metadata currently drop the select_choices_and_calculations column. We should include all fields returned in the metadata by the REDCap API.
Proposed Solution
Don't drop select_choices_and_calculations in add_metadata(). Note that this means that the content of select_choices_and_calculations would be duplicated across rows for checkbox fields like this:
Feature Request Description
The elements of
supertibble$redcap_metadata
currently drop theselect_choices_and_calculations
column. We should include all fields returned in the metadata by the REDCap API.Proposed Solution
Don't drop
select_choices_and_calculations
inadd_metadata()
. Note that this means that the content ofselect_choices_and_calculations
would be duplicated across rows for checkbox fields like this:Additional Context
This is where the change needs to be made + our (my?) original thinking: https://github.com/CHOP-CGTInformatics/REDCapTidieR/blob/51ced1e68d20652da0f8854cafeecef88ad2db73/R/read_redcap.R#L325-L328
Checklist