generated from opensafely/research-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yaml
50 lines (44 loc) · 1.41 KB
/
project.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3.0'
expectations:
population_size: 1000
actions:
# Generate ethnicity study population
generate_study_population_ethnicity:
run: >
cohortextractor:latest generate_cohort
--study-definition study_definition_ethnicity
--output-dir=output
--output-format=csv
outputs:
highly_sensitive:
cohort: output/input_ethnicity.csv
# Stroke and transient ischaemic attack
generate_study_population_stia_reg:
run: >
cohortextractor:latest generate_cohort
--study-definition study_definition_stia_reg
--index-date-range "2021-04-01 to 2022-03-01 by month"
--output-dir=output
--output-format=csv
outputs:
highly_sensitive:
cohort: output/input_stia_reg*.csv
join_ethnicity_stia:
run: >
cohort-joiner:v0.0.12
--lhs output/input_stia*.csv
--rhs output/input_ethnicity.csv
--output-dir output/joined
needs: [generate_study_population_ethnicity, generate_study_population_stia_reg]
outputs:
highly_sensitive:
cohort: output/joined/input_stia*.csv
generate_measures_stia_reg:
run: >
cohortextractor:latest generate_measures
--study-definition study_definition_stia_reg
--output-dir=output/joined
needs: [join_ethnicity_stia]
outputs:
moderately_sensitive:
measure_csv: output/joined/measure_stia_reg_*_rate.csv