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.
Move import codelists into separate module
- Loading branch information
1 parent
b4c294d
commit 01af9cf
Showing
2 changed files
with
17 additions
and
16 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,15 @@ | ||
from ehrql import codelist_from_csv | ||
|
||
# Import pharmacy first conditions codelist | ||
pharmacy_first_conditions_codelist = codelist_from_csv( | ||
"codelists/user-chriswood-pharmacy-first-clinical-pathway-conditions.csv", | ||
column="code", | ||
category_column="term", | ||
) | ||
|
||
# Import ethnicity codelist | ||
ethnicity_codelist = codelist_from_csv( | ||
"codelists/opensafely-ethnicity-snomed-0removed.csv", | ||
column="snomedcode", | ||
category_column="Grouping_6", | ||
) |
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