Skip to content

Commit

Permalink
Add additional fields to Swab&Send ETL, requested by Chu lab
Browse files Browse the repository at this point in the history
  • Loading branch information
davereinhart committed Apr 11, 2024
1 parent 72156ca commit 51ca0a0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ def build_questionnaire_items(question: str) -> Optional[dict]:
'barcode_confirm',
'travel_states',
'travel_countries',
'child_daycare',
]

integer_questions = [
Expand All @@ -461,6 +462,15 @@ def build_questionnaire_items(question: str) -> Optional[dict]:
'smoke_9a005a',
'chronic_illness',
'housing_type',
'agegroups',
'regular_activities_0',
'school_interference_0',
'activities_impacted_0v2',
'regular_activities_1',
'activities_impacted_2',
'school_interference_1',
'work_impact_0',
'work_impact',
]

question_categories = {
Expand All @@ -474,6 +484,13 @@ def build_questionnaire_items(question: str) -> Optional[dict]:
'insurance',
'smoke_9a005a',
'chronic_illness',
'agegroups',
'school_interference_0',
'activities_impacted_0v2',
'activities_impacted_2',
'school_interference_1',
'work_impact_0',
'work_impact',
]

# Do some pre-processing
Expand Down
15 changes: 15 additions & 0 deletions lib/seattleflu/id3c/cli/command/etl/redcap_det_swab_n_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ def build_questionnaire_items(question: str) -> Optional[dict]:
'barcode_confirm',
'travel_states',
'travel_countries',
'child_daycare',
]

integer_questions = [
Expand All @@ -438,6 +439,14 @@ def build_questionnaire_items(question: str) -> Optional[dict]:
'smoke_9a005a',
'chronic_illness',
'housing_type',
'agegroups',
'regular_activities_0',
'school_interference_0',
'activities_impacted_0',
'regular_activities_1',
'activities_impacted_2',
'school_interference_1',
'work_impact',
]

# Do some pre-processing
Expand All @@ -446,6 +455,12 @@ def build_questionnaire_items(question: str) -> Optional[dict]:
'insurance',
'smoke_9a005a',
'chronic_illness',
'agegroups',
'school_interference_0',
'activities_impacted_0',
'activities_impacted_2',
'school_interference_1',
'work_impact',
]

question_categories = {
Expand Down

0 comments on commit 51ca0a0

Please sign in to comment.