EHDEN / CdmInspection

R Package to support quality control inspection of an OMOP-CDM instance
Apache License 2.0
11 stars 16 forks source link

Add domain to drug mapping level table #62

Open MaximMoinat opened 3 years ago

MaximMoinat commented 3 years ago

In some datasets the drug exposure table is very 'dirty', with drug_concept_id's from other domains. This can give a long list of different classes in the Drug Mapping Level table (section 4.4, table 6), making hard to interpret. See example below.

I propose to filter the mapping level query by the drug domain (domain_id = 'Drug'). The only caveat is that this hides that there are concepts from other domains. Although it is the purpose of the DataQualityDashboard to flag those quality issues.

image