diff --git a/data_steward/cdr_cleaner/cleaning_rules/create_person_ext_table.py b/data_steward/cdr_cleaner/cleaning_rules/create_person_ext_table.py index cfd39b161..9e7d65306 100644 --- a/data_steward/cdr_cleaner/cleaning_rules/create_person_ext_table.py +++ b/data_steward/cdr_cleaner/cleaning_rules/create_person_ext_table.py @@ -39,10 +39,7 @@ t.state_of_residence_source_value = c.concept_name, t.sex_at_birth_concept_id = COALESCE(os.value_as_concept_id, 0), t.sex_at_birth_source_concept_id = COALESCE(os.value_source_concept_id, 0), - t.sex_at_birth_source_value = COALESCE(sc.concept_code, 'No matching concept'), - t.self_reported_category_concept_id = COALESCE(srp.value_as_concept_id, 0), - t.self_reported_category_source_concept_id = COALESCE(srp.value_source_concept_id, 0), - t.self_reported_category_source_value = COALESCE(srp.value_source_value, 'No matching concept') + t.sex_at_birth_source_value = COALESCE(sc.concept_code, 'No matching concept') FROM `{{project}}.{{dataset}}.person` p LEFT JOIN diff --git a/data_steward/resource_files/schemas/extension_tables/person_ext.json b/data_steward/resource_files/schemas/extension_tables/person_ext.json index e2ae7f3ff..bd91628d2 100644 --- a/data_steward/resource_files/schemas/extension_tables/person_ext.json +++ b/data_steward/resource_files/schemas/extension_tables/person_ext.json @@ -40,23 +40,5 @@ "name": "sex_at_birth_source_value", "mode": "nullable", "description": "[All of Us OMOP extension] The source code for the biological sex at birth." - }, - { - "type": "integer", - "name": "self_reported_category_concept_id", - "mode": "nullable", - "description": "[All of Us OMOP extension] A foreign key to the participant's self-reported population concept." - }, - { - "type": "integer", - "name": "self_reported_category_source_concept_id", - "mode": "nullable", - "description": "[All of Us OMOP extension] A foreign key to the participant's self-reported population source concept." - }, - { - "type": "string", - "name": "self_reported_category_source_value", - "mode": "nullable", - "description": "[All of Us OMOP extension] The source code for the participant's self reported population." } ]