Skip to content

Commit

Permalink
HRGs split into 4
Browse files Browse the repository at this point in the history
  • Loading branch information
viyaasan committed Sep 2, 2024
1 parent b3357e4 commit 42e4c10
Show file tree
Hide file tree
Showing 56 changed files with 26,046 additions and 662 deletions.
33 changes: 33 additions & 0 deletions analysis/study_definition_2017_ckd_hrg1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

CKD = "output/2017_ckd.csv"

from variables_additional import generate_variables_additional
variables_additional= generate_variables_additional(index_date_variable="index_date")

from variables_hrg1 import generate_variables_hrg1
variables_hrg1= generate_variables_hrg1(index_date_variable="index_date")


study = StudyDefinition(
default_expectations={
"date": {"earliest": "2017-04-01", "latest": "2018-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(CKD),
index_date="2017-04-01",

**variables_additional,
**variables_hrg1,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2017_ckd_hrg2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

CKD = "output/2017_ckd.csv"

from variables_additional import generate_variables_additional
variables_additional= generate_variables_additional(index_date_variable="index_date")

from variables_hrg2 import generate_variables_hrg2
variables_hrg2= generate_variables_hrg2(index_date_variable="index_date")


study = StudyDefinition(
default_expectations={
"date": {"earliest": "2017-04-01", "latest": "2018-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(CKD),
index_date="2017-04-01",

**variables_additional,
**variables_hrg2,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2017_ckd_hrg3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

CKD = "output/2017_ckd.csv"

from variables_additional import generate_variables_additional
variables_additional= generate_variables_additional(index_date_variable="index_date")

from variables_hrg3 import generate_variables_hrg3
variables_hrg3= generate_variables_hrg3(index_date_variable="index_date")


study = StudyDefinition(
default_expectations={
"date": {"earliest": "2017-04-01", "latest": "2018-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(CKD),
index_date="2017-04-01",

**variables_additional,
**variables_hrg3,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2017_ckd_hrg4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

CKD = "output/2017_ckd.csv"

from variables_additional import generate_variables_additional
variables_additional= generate_variables_additional(index_date_variable="index_date")

from variables_hrg4 import generate_variables_hrg4
variables_hrg4= generate_variables_hrg4(index_date_variable="index_date")


study = StudyDefinition(
default_expectations={
"date": {"earliest": "2017-04-01", "latest": "2018-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(CKD),
index_date="2017-04-01",

**variables_additional,
**variables_hrg4,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2017_nockd_hrg1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

NOCKD = "output/2017_nockd.csv"

from variables_nockd import generate_variables_nockd
variables_nockd= generate_variables_nockd(index_date_variable="index_date")

from variables_hrg1 import generate_variables_hrg1
variables_hrg1= generate_variables_hrg1(index_date_variable="index_date")

study = StudyDefinition(
default_expectations={
"date": {"earliest": "2017-04-01", "latest": "2018-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(NOCKD),
index_date="2017-04-01",

**variables_additional,
**variables_hrg1,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2017_nockd_hrg2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

NOCKD = "output/2017_nockd.csv"

from variables_nockd import generate_variables_nockd
variables_nockd= generate_variables_nockd(index_date_variable="index_date")

from variables_hrg2 import generate_variables_hrg2
variables_hrg2= generate_variables_hrg2(index_date_variable="index_date")

study = StudyDefinition(
default_expectations={
"date": {"earliest": "2017-04-01", "latest": "2018-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(NOCKD),
index_date="2017-04-01",

**variables_additional,
**variables_hrg2,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2017_nockd_hrg3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

NOCKD = "output/2017_nockd.csv"

from variables_nockd import generate_variables_nockd
variables_nockd= generate_variables_nockd(index_date_variable="index_date")

from variables_hrg3 import generate_variables_hrg3
variables_hrg3= generate_variables_hrg3(index_date_variable="index_date")

study = StudyDefinition(
default_expectations={
"date": {"earliest": "2017-04-01", "latest": "2018-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(NOCKD),
index_date="2017-04-01",

**variables_additional,
**variables_hrg3,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2017_nockd_hrg4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

NOCKD = "output/2017_nockd.csv"

from variables_nockd import generate_variables_nockd
variables_nockd= generate_variables_nockd(index_date_variable="index_date")

from variables_hrg4 import generate_variables_hrg4
variables_hrg4= generate_variables_hrg4(index_date_variable="index_date")

study = StudyDefinition(
default_expectations={
"date": {"earliest": "2017-04-01", "latest": "2018-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(NOCKD),
index_date="2017-04-01",

**variables_additional,
**variables_hrg4,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2018_ckd_hrg1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

CKD = "output/2018_ckd.csv"

from variables_additional import generate_variables_additional
variables_additional= generate_variables_additional(index_date_variable="index_date")

from variables_hrg1 import generate_variables_hrg1
variables_hrg1= generate_variables_hrg1(index_date_variable="index_date")


study = StudyDefinition(
default_expectations={
"date": {"earliest": "2018-04-01", "latest": "2019-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(CKD),
index_date="2018-04-01",

**variables_additional,
**variables_hrg1,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2018_ckd_hrg2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

CKD = "output/2018_ckd.csv"

from variables_additional import generate_variables_additional
variables_additional= generate_variables_additional(index_date_variable="index_date")

from variables_hrg2 import generate_variables_hrg2
variables_hrg2= generate_variables_hrg2(index_date_variable="index_date")


study = StudyDefinition(
default_expectations={
"date": {"earliest": "2018-04-01", "latest": "2019-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(CKD),
index_date="2018-04-01",

**variables_additional,
**variables_hrg2,
)
33 changes: 33 additions & 0 deletions analysis/study_definition_2018_ckd_hrg3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from cohortextractor import (
StudyDefinition,
Measure,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)

from codelists import *

CKD = "output/2018_ckd.csv"

from variables_additional import generate_variables_additional
variables_additional= generate_variables_additional(index_date_variable="index_date")

from variables_hrg3 import generate_variables_hrg3
variables_hrg3= generate_variables_hrg3(index_date_variable="index_date")


study = StudyDefinition(
default_expectations={
"date": {"earliest": "2018-04-01", "latest": "2019-03-31"},
"rate": "uniform",
"incidence" : 0.2
},
population=patients.which_exist_in_file(CKD),
index_date="2018-04-01",

**variables_additional,
**variables_hrg3,
)
Loading

0 comments on commit 42e4c10

Please sign in to comment.