I was going through a DataQualityDashboard report and saw several failed plausibility tests in the form of
“the number and percent of records for a given CONCEPT_ID XXXXX (LABEL) with implausible units (i.e., UNIT_CONCEPT_ID NOT IN (NA)).”
Looking at the test the sql is actually returning all rows for a given concept id and marking all as failed
e.g. for Bilirrubin
SELECT
m.*
FROM omop_quiron.MEASUREMENT m
WHERE m.MEASUREMENT_CONCEPT_ID = 3045524
AND
m.unit_concept_id IS NOT NULL
AND m.value_as_number IS NOT NULL
AND (m.unit_source_value IS NOT NULL OR m.unit_source_value <> ‘’)
Am I missing something or is that a bug in the rule generation?