Skip to content

Can Leaf query the source codes in an OHDSI CDM dbms? #398

Answered by ndobb
artgoldberg asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @artgoldberg,

Thanks for your question! Yes, as Leaf concept WHERE clauses are flexible, Leaf can be configured to use either the OMOP standard concept code or source code (or even incorporate the concept_ancestor table to include descendant coded concepts).

For example, at UW we host one OMOP Leaf instance which happens to use source codes, as can be seen here:

One could instead of course use the standard concept by changing the WHERE clause from:

@.condition_source_value = 'E11.22'

to

@.concept_id = 45595797

which would accomplish the same thing (though you'd likely use different database indexing strategies and so on, depending on your implementation).

Also, in our leaf-scripts repo

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@artgoldberg
Comment options

Answer selected by ndobb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants