test: Add test coverage for BMI categorization in case service #17
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.
SUMMARY
Problem
This PR addresses two main needs:
Solution
Answer Export Scripts
export_answers_to_csv.pyandexport_answers_to_csv_new_format.py) to extract answer data from the database and format it for analysisBMI Categorization
case_service.pyto detect BMI measurements (concept_id 40490382) and convert numeric values to categories:Round 3 Configuration
generate_round3_test_config.shscriptremove_all_case_assignments.pyutilityround3_test_config.csvwith test dataCleanup
config.csvfile (25K+ lines)TEST PLAN
Manual Testing
BMI Display
Answer Export
python script/answer_export/export_answers_to_csv.pyRound 3 Configuration
./script/assign_cases/generate_round3_test_config.shAutomated Testing
CI/CD
Pre-merge author checklist