OHDSI / Vocabulary-v5.0

Build process for the OHDSI Standardized Vocabularies. Currently not available as independent release.
The Unlicense
214 stars 75 forks source link

some drugs have multiple dose forms #934

Open tiozab opened 7 months ago

tiozab commented 7 months ago

Here is a list of (drug) concept_ids with concept name that have multiple dose forms. Can the dose form mapping be corrected that the drugs only have one dose form?

duplicate dose forms.csv

thisismexp commented 6 months ago

We encountered the same issue and identified about 6.763 affected concepts in RxNorm/RxE with this query:

--sqlite
SELECT d.concept_id, d.concept_name, group_concat(df.concept_name)
FROM CONCEPT d
INNER JOIN CONCEPT_RELATIONSHIP cr
    ON d.concept_id = cr.concept_id_1
    AND cr.relationship_id = 'RxNorm has dose form'
    AND cr.invalid_reason = ''
    AND d.invalid_reason = ''
    AND d.vocabulary_id IN ('RxNorm', 'RxNorm Extension')
INNER JOIN CONCEPT df
    ON cr.concept_id_2 = df.concept_id
    AND df.invalid_reason = ''
GROUP BY d.concept_id
HAVING count(df.concept_id) > 1