diff --git a/data-serving/reusable-data-service/data_service/day_zero_fields.json b/data-serving/reusable-data-service/data_service/day_zero_fields.json index e095ccc7b..33b4306a3 100644 --- a/data-serving/reusable-data-service/data_service/day_zero_fields.json +++ b/data-serving/reusable-data-service/data_service/day_zero_fields.json @@ -68,6 +68,31 @@ ], "is_list": true }, + { + "key": "race", + "type": "string", + "data_dictionary_text": "Race of the individual; can select multiple options.", + "required": true, + "values": [ + "Native Hawaiian or Other Pacific Islander", + "Asian", + "American Indian or Alaska Native", + "Black or African American", + "White", + "other" + ], + "is_list": true + }, + { + "key": "ethnicity", + "type": "string", + "data_dictionary_text": "Ethnicity of the individual, per the U.S. census definition.", + "values": [ + "Hispanic or Latino", + "Not Hispanic or Latino", + "other" + ] + }, { "key": "confirmationDate", "type": "date", diff --git a/data-serving/reusable-data-service/tests/data/case.excluded.json b/data-serving/reusable-data-service/tests/data/case.excluded.json index baba5a6c1..65216cbeb 100644 --- a/data-serving/reusable-data-service/tests/data/case.excluded.json +++ b/data-serving/reusable-data-service/tests/data/case.excluded.json @@ -10,5 +10,6 @@ "caseStatus": "omit_error", "pathogenStatus": "endemic", "sexAtBirth": "female", - "gender": ["woman"] + "gender": ["woman"], + "race": ["White"] } \ No newline at end of file diff --git a/data-serving/reusable-data-service/tests/data/case.minimal.json b/data-serving/reusable-data-service/tests/data/case.minimal.json index c440e6377..b87fb680c 100644 --- a/data-serving/reusable-data-service/tests/data/case.minimal.json +++ b/data-serving/reusable-data-service/tests/data/case.minimal.json @@ -6,5 +6,6 @@ "caseStatus": "probable", "pathogenStatus": "emerging", "sexAtBirth": "female", - "gender": [] + "gender": [], + "race": [] } \ No newline at end of file diff --git a/data-serving/reusable-data-service/tests/data/case.with_location.json b/data-serving/reusable-data-service/tests/data/case.with_location.json index 2735b6263..3aa868828 100644 --- a/data-serving/reusable-data-service/tests/data/case.with_location.json +++ b/data-serving/reusable-data-service/tests/data/case.with_location.json @@ -20,5 +20,6 @@ "pathogenStatus": "unknown", "sexAtBirth": "female", "gender": ["non-binary", "other"], - "gender_other": "womxn" + "gender_other": "womxn", + "race": [] } \ No newline at end of file