Skip to content

Commit

Permalink
Correct naming error and trial all diseases
Browse files Browse the repository at this point in the history
  • Loading branch information
markdrussell committed Jan 1, 2025
1 parent 7b975c5 commit e7ff87b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions analysis/dataset_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def preceding_registration(dx_date):
)

# List of diseases and codelists to cycle through
diseases = ["dementia", "stroke"]
# diseases = ["asthma", "copd", "chd", "stroke", "heart_failure", "dementia", "multiple_sclerosis", "epilepsy", "crohns_disease", "ulcerative_colitis", "dm_type2", "dm_type1", "ckd", "psoriasis", "atopic_dermatitis", "osteoporosis", "hiv", "depression", "coeliac", "pmr"]
# diseases = ["asthma", "copd", "chd", "stroke", "heart_failure"]
diseases = ["asthma", "copd", "chd", "stroke", "heart_failure", "dementia", "multiple_sclerosis", "epilepsy", "crohns_disease", "ulcerative_colitis", "dm_type2", "dm_type1", "ckd", "psoriasis", "atopic_dermatitis", "osteoporosis", "hiv", "depression", "coeliac", "pmr"]
codelist_types = ["snomed", "icd", "resolved"]

for disease in diseases:
Expand Down
4 changes: 2 additions & 2 deletions analysis/dataset_definition_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def preceding_registration(dx_date):

# Prevalence
measures.define_measure(
name=disease + "_prevalence",
name=f"{disease}_prevalence",
numerator=prev_numerators[f"{disease}_prev_num"],
denominator=prev_denominators[f"{disease}_prev_denom"],
intervals=years(intervals_years).starting_on(start_date),
Expand All @@ -174,7 +174,7 @@ def preceding_registration(dx_date):

# Incidence by age and sex
measures.define_measure(
name=disease + "_incidence",
name=f"{disease}_incidence",
numerator=incidence_numerators[f"{disease}_inc_num"],
denominator=incidence_denominators[f"{disease}_inc_denom"],
group_by={
Expand Down

0 comments on commit e7ff87b

Please sign in to comment.