opensafely / os-sch-children-2021

update of risk of covid outcome associated with living with kids
MIT License
0 stars 2 forks source link

Nit: Incidence of COVID for dummy data #8

Open CarolineMorton opened 3 years ago

CarolineMorton commented 3 years ago

A minor point but may be important for developing analytic code. The incidence of COVID is set at 95% in most places:

 covid_tpp_probable=patients.with_these_clinical_events(
        combine_codelists(covid_identification_in_primary_care_case_codes_clinical,
                          covid_identification_in_primary_care_case_codes_test,
                          covid_identification_in_primary_care_case_codes_seq),
        return_first_date_in_period=True,
        include_day=True,
        return_expectations={"date": {"earliest": "2020-12-20"}, "incidence" : 0.95},
    ), 

   covid_tpp_codes_clinical=patients.with_these_clinical_events(
        combine_codelists(covid_identification_in_primary_care_case_codes_clinical),
        return_first_date_in_period=True,
        include_day=True,
        return_expectations={"date": {"earliest": "2020-12-20"}, "incidence" : 0.95},
    ), 

   covid_tpp_codes_test=patients.with_these_clinical_events(
        combine_codelists(covid_identification_in_primary_care_case_codes_test),
        return_first_date_in_period=True,
        include_day=True,
        return_expectations={"date": {"earliest": "2020-12-20"}, "incidence" : 0.95},
    ), 

   covid_tpp_codes_seq=patients.with_these_clinical_events(
        combine_codelists(covid_identification_in_primary_care_case_codes_seq),
        return_first_date_in_period=True,
        include_day=True,
        return_expectations={"date": {"earliest": "2020-12-20"}, "incidence" : 0.95},
    ), 

and ICU admission set as 80%.

This will mean that the dummy data will not be very accurate as we are saying that pretty much every person in the study has COVID and was diagnosed/hospitalised with it.

hjforbes commented 3 years ago

amended thanks