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
ROhdsiWebApi::getCohortSql() with the public ATLAS webApi - it is adding the line:
"delete from @results_database_schema.cohort_censor_stats where cohort_definition_id = @target_cohort_id;"
which requires that the table 'cohort_censor_stats' exists - but if you just want to convert a json cohort into sql and execute it, you don't need the 'cohort_censor_stats' table and creating it is annoying.
I managed to remove the problematic line using gsub - but I'm wondering whether it is a bug that there is a @results_database_schema added?
The text was updated successfully, but these errors were encountered:
As @anthonysena has said, this is resolved by setting generateStats to false.
However, in my opinion most users of this package will not want to generate the cohort stats because it requires creating additional tables. I think the boilerplate sql for these tables must live somewhere so I propose one of three solutions:
Default behaviour of ROhdsiWebApi is to set generateStats = False
Include the boilerplate sql to create the stats tables (including censor stats table)
When executing:
ROhdsiWebApi::getCohortSql() with the public ATLAS webApi - it is adding the line:
"delete from @results_database_schema.cohort_censor_stats where cohort_definition_id = @target_cohort_id;"
which requires that the table 'cohort_censor_stats' exists - but if you just want to convert a json cohort into sql and execute it, you don't need the 'cohort_censor_stats' table and creating it is annoying.
I managed to remove the problematic line using gsub - but I'm wondering whether it is a bug that there is a @results_database_schema added?
The text was updated successfully, but these errors were encountered: