Definition
This Sensitive SNOMED Code model provides the SNOMED CT codes that are considered sensitive. This includes data related to areas such as gender, assisted fertilisation, sexually transmitted diseases, and other information deemed confidential.
Constraints and Notes
Section titled “Constraints and Notes”Soft deletion: Whenis_deletedis true, data fields will be nullified in upstream transformations and should be excluded from most analytical queries. Primary keys and foreign keys to patient data are preserved so deleted records and their relationships can still be identified.
Examples
Section titled “Examples”Selecting a concept ID
Section titled “Selecting a concept ID”SELECT *FROM hive.explorer_open_safely.sensitive_snomed_codeWHERE concept_id = 2007581000006106 -- example codeFinding concept IDs with more than one code ID
Section titled “Finding concept IDs with more than one code ID”SELECT concept_idFROM hive.explorer_open_safely.sensitive_snomed_codeGROUP BY concept_idHAVING count(code_id) > 1Finding the terms of the example code
Section titled “Finding the terms of the example code”SELECT ssc.concept_id, cc.fully_specified_name, ssc.code_id, cc.termFROM hive.explorer_open_safely.sensitive_snomed_code AS sscINNER JOIN hive.explorer_open_safely.codeable_concept AS ccON ssc.code_id = cc.code_idWHERE ssc.concept_id = 2007581000006106 -- example code