OHDSI / Era-Constructor

This is a repo that contains standardized code for hte construction of Drug Eras, Dose Eras and Condition Eras
2 stars 8 forks source link

Add unit tests #10

Open schuemie opened 4 years ago

schuemie commented 4 years ago

Constructing eras in an efficient manner is hard, and I've seen too many mistakes that are not obvious when you look at the era-construction algorithms.

I highly recommend adding some unit tests to make sure the end result is valid. Some tests that could easily be implemented:

I would personally also do a spot-check, for example using CohortDiagnostic's Cohort Explorer, but that may be my personal preference.