Using cdm_flatten() on a CDM performs table checks for the domains, for example:
assert_tables(cdm, "drugs")
and gives an error if the table is empty:
Error in `assert_tables()`:
! - drug_exposure cdm table is empty
However, when the function is applied to a small subset, it can easily happen that for this particular subset, some table is empty and this is completely OK and should not produce an error.
Using
cdm_flatten()
on a CDM performs table checks for the domains, for example:assert_tables(cdm, "drugs")
and gives an error if the table is empty:
However, when the function is applied to a small subset, it can easily happen that for this particular subset, some table is empty and this is completely OK and should not produce an error.
Reproducible example:
EXPECTED RESULT: No error
ACTUAL RESULT: