Skip to content

Commit

Permalink
Rename hispanic to ethnicity in asymptomatic swab and send ETL, for c…
Browse files Browse the repository at this point in the history
…onsistency with other projects
  • Loading branch information
davereinhart committed Apr 9, 2024
1 parent 723c782 commit 51bc1ad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def build_questionnaire_items(question: str) -> Optional[dict]:
]

boolean_questions = [
'hispanic',
'ethnicity',
'travel_states',
'travel_countries',
]
Expand Down Expand Up @@ -381,7 +381,8 @@ def build_questionnaire_items(question: str) -> Optional[dict]:
record['race'] = create_custom_coding_key('race', record)
record['age'] = age_ceiling(int(record['age']))
record['age_months'] = age_ceiling(int(record['age_months']) / 12) * 12

record['ethnicity'] = record['hispanic']

for field in checkbox_fields:
record[field] = combine_legacy_checkbox_answers(record, field)

Expand Down

0 comments on commit 51bc1ad

Please sign in to comment.