Hello,
I am trying to identify the leaf level concepts in the condition domain using a sql query in the OMOP model if possible. The concept_ancestor table does not help because it does not explicitly state if a concept is leaf level. It is just relative to the concept you are querying for. Has anybody had any success identifying the leaf levels in the condition SNOMED hierarchy using the OMOP tables or did you have to go a different route?