You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently no test for whether the era building went OK, even though it is easy to make mistakes there.
I'm currently using a simple test: I'm comparing the results of these two queries:
SELECT DISTINCT person_id, condition_concept_id FROM condition_occurrence;
SELECT DISTINCT person_id, condition_concept_id FROM condition_era;
and they should be identical. (It would be easy to test this through a join I guess). If that doesn't scale to bigger databases, at least we could count the number of people with a condition and compare those counts.
For drug_era we'd first need to map to ingredients, but otherwise it would be the same.
The text was updated successfully, but these errors were encountered:
There are currently no test for whether the era building went OK, even though it is easy to make mistakes there.
I'm currently using a simple test: I'm comparing the results of these two queries:
and they should be identical. (It would be easy to test this through a join I guess). If that doesn't scale to bigger databases, at least we could count the number of people with a condition and compare those counts.
For drug_era we'd first need to map to ingredients, but otherwise it would be the same.
The text was updated successfully, but these errors were encountered: