I see. I tried that with some SQL, but I am getting different results than the CSIRO visualization tool. There, they had 71 procedures stemming from “Procedure, concept code= 71388002”, but when I looked for direct children of 71388002, I got 33 instead. I saw that some of them weren’t in the procedure domain, which I am specifically looking at.
Could you take a look at my code and see if you spot what is going on? I joined concept_ancestor to concept to put names to the ancestors and descendants, looking at the direct children (max and min separation= 1) of Procedure (concept code= 71388002), which is what I thought to be the common ancestor of all SNOMED procedures, based on the visualization tool.
Again, thank you for your help. I appreciate it greatly.
(
SELECT
CONCEPT.CONCEPT_NAME as ancestor_name
, c2.CONCEPT_NAME as desc_name
, CONCEPT_ANCESTOR.*
FROM
CONCEPT_ANCESTOR
LEFT OUTER JOIN
CONCEPT
ON
CONCEPT.CONCEPT_ID = CONCEPT_ANCESTOR.ANCESTOR_CONCEPT_ID
LEFT OUTER JOIN
CONCEPT c2
ON
c2.CONCEPT_ID = CONCEPT_ANCESTOR.DESCENDANT_CONCEPT_ID
WHERE
CONCEPT.VOCABULARY_ID = ‘SNOMED’
AND
c2.VOCABULARY_ID = ‘SNOMED’
AND
CONCEPT.DOMAIN_ID = ‘Procedure’
AND
c2.DOMAIN_ID = ‘Procedure’
AND
CONCEPT_ANCESTOR.MAX_LEVELS_OF_SEPARATION = 1
AND
MIN_LEVELS_OF_SEPARATION = 1
AND
CONCEPT.CONCEPT_CODE = ‘71388002’
)
;