-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference to issue #210 #211
base: develop
Are you sure you want to change the base?
Conversation
Changes to test fix for cd_characterisation SQL error at app runtime
Update 2 to correct main.database_meta_data.databasename to cdm_source_name
db.database_name becomes db.cdm_source_name
Release v2.1.1
Release V 2.1.2
Hotfix 3.1.3
Hotfix 2.1.14
OK - this was a very complex issue. The problem is that the database tables/prefix and column names can change depending on how the app is being used. If running cohort generator then cohort diagnostics via Strategus you end up with database_meta_data but if running cohort diagnostic alone you end up using a different table in cohort diagnostics. I've made edits to fix the bug for the Strategus way (which based on your edits are how you are using it) in branch issue_211 but I need to test it on the cohort diagnostics only way before I pull these edits in. |
#210 (comment)
I've found a fix by correcting the SQL and parameters in the OhdsiShinyModules/R/cohort-diagnostics-characterization.R file.
I first updated the @results_database_schema.@database_table to hardcode .database_meta_data instead, this corrected the table error, but lead to an error with with column names (which had also been meaningless anyway).
I changed db.database_name to db.cdm_source_name which then provided both a fix to the missing characterisation data, error in the time_window view and turned the database names from nonsense -43458720394 to the actual CDM name.
Thanks