Add ability for NACCulator to process date and rater header info on individual forms #122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change adds logic to NACCulator's builder.py files that checks each individual form for date and rater information before it checks the main header form. This allows centers to specify which doctor filled out a form, and if they were filled on different days. If a center has not added these fields to their project, then NACCulator's functionality has not changed other than a few bug fixes.
Small fixes include:
The C2T form for telephone followup packets is now optional. The program will no longer assume the C2T is present.
The LBD event detection is improved (it will search for more variations of the B1L form's fieldname).
"NOGDS" in form B6 has been added to set_to_zero_if_blank to account for the TFP forms.
Why was this change made? Including an issue number is sufficient. Otherwise, briefly explain the benefit of the change.
This change was made to address Elijah Rockers' request to add custom form header functionality to NACCulator. This pull request uses the same builder.py logic as in #118 and I made sure to fix the same typo that Eli found in the uds3 fvp forms.py file.
My code differs by adding a few other bug fixes and leaving the forms.py files otherwise unchanged, so that the unit tests still pass.
Verification
redcap2nacc -ivp -lbdsv <input_data.csv >output_data.txt
(or a command with a similar flag; I am using lbd short version to demonstrate the improved event detection)
Affirmations
All of these should have a check by them. Any exception requires an explanation.
README
,CHANGELOG
, and such).