Skip to content

Commit

Permalink
Add instructions for cohortextractor / ehrql users
Browse files Browse the repository at this point in the history
This adds instruction to the study_population.py and dataset_definition.py files for cohort-extractor vs ehrql users.
  • Loading branch information
milanwiedemann committed Sep 14, 2023
1 parent 2b2acd9 commit 84206c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions analysis/dataset_definition.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Note: If you are using ehrQL to define your study population you need to:
# (1) uncomment the ehrQL action in the project.yaml file (lines 14-18),
# (2) delete the cohort-extractor action from the project.yaml file (lines 8-12), and
# (3) delete the study_definition.py file.

from ehrql import Dataset
from ehrql.tables.beta.tpp import patients, practice_registrations

Expand Down
4 changes: 4 additions & 0 deletions analysis/study_definition.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Note: If you are using cohortextrator to define your study population you need to
# (1) delete the ehrQL action in the project.yaml file (lines 14-18) and
# (2) delete the dataset_definition.py file.

from cohortextractor import StudyDefinition, patients, codelist, codelist_from_csv # NOQA


Expand Down

0 comments on commit 84206c8

Please sign in to comment.