Skip to content
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

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open

Reference to issue #210 #211

wants to merge 15 commits into from

Conversation

DrTTrousers
Copy link

#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

DrTTrousers and others added 5 commits October 12, 2023 09:27
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
@jreps jreps requested a review from azimov January 22, 2024 21:55
@jreps
Copy link
Collaborator

jreps commented Sep 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants