Hi, I’m new to OHDSI, so maybe this is a basic question. I am attempting to automate the CPT-4 to SNOMED category/equivalent (OMOP) relationship using the downloaded vocabularies, but cannot see how to recreate.
For an example, I can use the ATHENA browser to search CPT4 code 43771 which results in conept code 2108987. In the Term connections I see CPT-4 to SNOMED category (OMOP) Laparoscopic adjustable gastric banding 4190525 SNOMED.
I have downloaded (and applied cpt4.jar) CPT vocaulary and the SNOMED vocabs. I can find 2108987 in CPT4 and 4190525 in SNOMED but I cannot find any links between. What am I missing?
Link from the source code to the OMOP standard concept using the concept relationship table, where the relationship id = ‘Maps to’
e.g.
SELECT COALESCE( c2.concept_id, 0 ) as target_concept, c2.domain_id AS target_domain
FROM concept c1
LEFT OUTER JOIN concept_relationship ON relationship_id = ‘Maps to’ AND concept_id_1 = c1.concept_id
LEFT OUTER JOIN concept c2 on c2.concept_id = concept_id_2
WHERE c1.vocabulary_id = ‘CPT4’ AND c1.concept_code = ‘43771’;
FROM concept c1
LEFT OUTER JOIN concept_relationship ON relationship_id = ‘Maps to’ AND concept_id_1 = c1.concept_id
LEFT OUTER JOIN concept c2 on c2.concept_id = concept_id_2
Just to make sure. Did you select both CPT4 and SNOMED and download vocabularies together, or downloaded separately? If you don’t see the relation to SNOMED in concept_relationship table from CPT4, it seems like you have downloaded vocabularies separately. Downloading the vocabulary together should fix the issue.