opensafely / post-covid-respiratory

MIT License
0 stars 0 forks source link

Preprocess repeat events #30

Closed elsie-h closed 1 year ago

elsie-h commented 1 year ago

@A-Whitmarsh, as you made most of the changes in this branch, could you please write a description for @venexia and then assign her to review? Thanks!

A-Whitmarsh commented 1 year ago

study_definition_repeat_events_1.py: Update study definition to include events 14 days prior to pandemic start date. create_project_actions.R: Add stage 1 and move to before repeat events. preprocess_data.R: Remove code related to outcomes. stage1_data_cleaning.R: Take stage 1 IDs to add to dummy data. modify_repeat_events_dummy_data.R: Run within process_repeat_events.R. Add stage 1 IDs to dummy data. Update event dates to be within study period (I will update the dummy data expectations later so this shouldn’t be necessary). process_repeat_events.R: Pull all repeat events together. Convert data to long.