opensafely / booster-effectiveness

To estimate the effectiveness of third COVID-19 vaccine doses compared with second dose only
MIT License
0 stars 0 forks source link

Add hosp-from-A&E outcome #51

Closed wjchulme closed 2 years ago

wjchulme commented 2 years ago

Hospitalisation data is slow but we can get close(ish) using A&E attendance + discharge location + positive test.

See report on this here: https://docs.google.com/document/d/1Ek6x1PUyVcdQeULWWWsjRBZFS_G3IsxJeKnwNWfytDM/edit

It's not as easy as defining the outcome once, as there may be multiple relevant attendances, positive tests, etc.

The study definition needs:

See emergency_attendance_date_X function in the study definition and adapt as appropriate. Also see https://docs.opensafely.org/study-def-variables/#cohortextractor.patients.attended_emergency_care for relevant filtering options.

Once extracted, define the proxy outcome as one of:

which will need to be defined in the process_data_long.R script.

The first definition will be more specific but less sensitive than the second. The second will have particularly low specificity when infection prevalence is high.