OHDSI / ResultModelManager

RMM is an R package designed to handle common ohdsi results data management functions by providing a common API for data model migrations and definitions
https://ohdsi.github.io/ResultModelManager/
Apache License 2.0
3 stars 3 forks source link

Add ability to update evidence synthesis results #30

Closed schuemie closed 10 months ago

schuemie commented 1 year ago

I currently don't seem to be able to update evidence synthesis results. If I use purgeSiteDataBeforeUploading = FALSE, uploadResults() will not upload the new results because old results exist. If I use purgeSiteDataBeforeUploading = TRUE it requires a CDM source information CSV file that doesn't make sense in the context of evidence synthesis.

(My current workaround is to delete the 'es_' tables and create them anew, which doesn't seem like a nice solution)

azimov commented 1 year ago

Of course - I think I understand your issue - there will be no database_id in the context of the evidence synthesis data model (which is what the function currently relies on to purge a given site's data).

In this context I think it would be best to implement a "purgeAllData" parameter that will simply call DELETE FROM or TRUNCATE on all tables in the model spec. This shouldn't take too long to implement.