Skip to content

concept lookup rule implementation #14

@sshenzha

Description

@sshenzha

In OMOP, you don't query clinical data by string. The intended pattern is always:

WHERE drug_concept_id IN (
    SELECT concept_id FROM concept WHERE concept_code = '308136' AND vocabulary_id = 'RxNorm'
)

and not

SELECT * FROM drug_exposure de
JOIN concept c ON de.drug_concept_id = c.concept_id
WHERE c.concept_name LIKE '%aspirin%'

Although the second query works, it's structurally wrong. The concept_name LIKE filter performs concept identification within a clinical query rather than in a dedicated concept_id lookup.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions