Definition
The MKB Mapping — Ethnicity model provides a standardized reference for ethnicity codes, mapping local codes to SNOMED CT concepts. Can be joined to the patient table to identify patient demographics relating to ethnicity.
Constraints and Notes
Section titled “Constraints and Notes”Soft deletion: Whenis_deletedis true, data fields may be nullified in upstream transformations and should be excluded from most analytical queries. Primary keys and foreign keys are preserved so deleted linked records can be identified
Examples
Section titled “Examples”Active ethnicity codes
Section titled “Active ethnicity codes”SELECT code_id, snomed_concept_id, snomed_description, organisation, transform_datetimeFROM hive.explorer_open_safely.mkb_mapping_ethnicityWHERE is_deleted = FALSEORDER BY snomed_descriptionFind specific ethnicity type
Section titled “Find specific ethnicity type”SELECT code_id, snomed_concept_id, snomed_description, organisation, transform_datetimeFROM hive.explorer_open_safely.mkb_mapping_ethnicityWHERE is_deleted = FALSE AND snomed_description LIKE '%Asian%'ORDER BY snomed_descriptionHistorical ethnicity codes
Section titled “Historical ethnicity codes”SELECT code_id, snomed_concept_id, snomed_description, snomed_description_id, organisation, transform_datetimeFROM hive.explorer_open_safely.mkb_mapping_ethnicityWHERE is_deleted = TRUEORDER BY transform_datetime DESC