Skip to content
Partner Developer Portal

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.

  • Soft deletion: When is_deleted is 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.
SELECT
*
FROM hive.explorer_open_safely.sensitive_snomed_code
WHERE concept_id = 2007581000006106 -- example code

Finding concept IDs with more than one code ID

Section titled “Finding concept IDs with more than one code ID”
SELECT
concept_id
FROM hive.explorer_open_safely.sensitive_snomed_code
GROUP BY concept_id
HAVING count(code_id) > 1
SELECT
ssc.concept_id,
cc.fully_specified_name,
ssc.code_id,
cc.term
FROM hive.explorer_open_safely.sensitive_snomed_code AS ssc
INNER JOIN hive.explorer_open_safely.codeable_concept AS cc
ON ssc.code_id = cc.code_id
WHERE ssc.concept_id = 2007581000006106 -- example code