sensein / b2aiprep

Apache License 2.0
5 stars 6 forks source link

tie together the various constants used for parsing the redcap CSV #54

Closed alistairewj closed 3 months ago

alistairewj commented 4 months ago

I refactored the plethora of hard-coded dictionaries we had into a single Enum with an Instrument class. The goal of this was to (1) tie together all these constants so we wouldn't forget to add a columns variable for a questionnaire with the name variable, (2) reduce the number of hard-coded values, and (3) reduce the complexity of multiple dictionaries interacting.