Skip to content

Commit

Permalink
Merge pull request #110 from opensafely/replace-cohortextractor-with-…
Browse files Browse the repository at this point in the history
…ehrql

Replace cohortextractor with ehrql
  • Loading branch information
inglesp authored Nov 7, 2023
2 parents d6a1e4c + cc204eb commit 25cf5b6
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 25cf5b6

Please sign in to comment.