generated from opensafely/research-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
26,046 additions
and
662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
Oops, something went wrong.