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. Foreign keys to coding tables are nullified as the coded information is no longer valid.
Examples
Section titled “Examples”Selecting a concept ID
Section titled “Selecting a concept ID”SELECT *FROM explorer_open_safely.sensitive_snomed_codeWHERE snomed_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 snomed_concept_idFROM explorer_open_safely.sensitive_snomed_codeGROUP BY snomed_concept_idHAVING count(code_id) > 1Finding the terms of the example code
Section titled “Finding the terms of the example code”SELECT ssc.snomed_concept_id, cc.fully_specified_name, ssc.code_id, cc.termFROM explorer_open_safely.sensitive_snomed_code AS sscINNER JOIN explorer_open_safely.codeable_concept AS ccON ssc.code_id = cc.code_idWHERE ssc.snomed_concept_id = 2007581000006106 -- example code