Closed LindaNab closed 2 years ago
Second commit adds variable any_covid_hospital_admission_date
, used to check if there was a covid hospitalisation in the 30 days prior to a +ve test (covid as a primary diagnosis or not primary). This is used alongside SGSS test data to check "As per NHSD’s test rule set logic, patients with a prior +ve test within the last 30 days were excluded".
This PR adds:
hospital_discharge_date_before_eligible
andhospital_admission_date_after_eligible
tostudy_definition
.elig_start
or who have been hospitalised but were discharged before or onelig_start
.Notes:
hospital_discharge_date_before_eligible
andhospital_admission_date_after_eligible
usecovid_test_positive_date
iostart_date
because the variable is used for excluding people from the eligible population (and not the treated but not eligible population).