Skip to content

Commit

Permalink
Replace cohortextractor with ehrql
Browse files Browse the repository at this point in the history
Fixes #108
  • Loading branch information
inglesp committed Nov 7, 2023
1 parent d6a1e4c commit cc204eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 32 deletions.
5 changes: 0 additions & 5 deletions analysis/dataset_definition.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# 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
17 changes: 0 additions & 17 deletions analysis/study_definition.py

This file was deleted.

14 changes: 4 additions & 10 deletions project.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
version: '3.0'

# Ignore this`expectation` block. It is required but not used, and will be removed in future versions.
expectations:
population_size: 1000

actions:

generate_study_population:
run: cohortextractor:latest generate_cohort --output-format csv.gz --study-definition study_definition
generate_dataset:
run: ehrql:v0 generate-dataset analysis/dataset_definition.py --output output/dataset.csv.gz
outputs:
highly_sensitive:
cohort: output/input.csv.gz

# generate_dataset:
# run: ehrql:v0 generate-dataset analysis/dataset_definition.py --output output/dataset.csv.gz
# outputs:
# highly_sensitive:
# cohort: output/dataset.csv.gz
dataset: output/dataset.csv.gz

0 comments on commit cc204eb

Please sign in to comment.