-
Notifications
You must be signed in to change notification settings - Fork 0
concept lookup rule implementation #14
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels