SwissClinicalTrialOrganisation / secuTrialR

Handling of data from the clinical data management system secuTrial
https://swissclinicaltrialorganisation.github.io/secuTrialR/
Other
8 stars 12 forks source link

New function to write secuTrialR object to secuTrial export style .zip file #259

Open DrEspresso opened 11 months ago

DrEspresso commented 11 months ago

Is your feature request related to a problem? Please describe. Sometimes, it would be nice to use R to quickly search and filter for specific patients and/or forms, and to remove all other patients from a secuTrial export.

Describe the solution you'd like The function write_secuTrial() should write a secuTrialR object to a .zip file with the same export formats as the original secuTrial export.

Additional context This would allow slim R scripts, that filter a secuTrial export, to be placed in a secuTrialR "Pipeline"

aghaynes commented 11 months ago

Interesting idea... I guess it would allow more generic/customisable filtering than secuTrials own filter in the export module...

Do you think that this would actually be a feature that people would use though? I cant think of any cases where it would have been useful to us in Bern...

DrEspresso commented 11 months ago

Do you think that this would actually be a feature that people would use though? I cant think of any cases where it would have been useful to us in Bern...

Probably, most users will not need this feature, and it should not be high priority. For me, it might be useful when we are asked for a partial export of a subset of patients, which sometimes happens for registries/cohorts,