generated from opensafely/sro-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yaml
94 lines (84 loc) · 2.98 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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=feather
outputs:
highly_sensitive:
cohort: output/input_ethnicity.feather
generate_study_population_bp002_1y_lookback:
run: >
cohortextractor:latest generate_cohort
--study-definition study_definition_bp002_1y_lookback
--index-date-range "2019-03-01 to 2023-03-31 by month"
--output-dir=output
--output-format=feather
outputs:
highly_sensitive:
cohort: output/input_bp002_1y*.feather
generate_study_population_bp002_5y_lookback:
run: >
cohortextractor:latest generate_cohort
--study-definition study_definition_bp002_5y_lookback
--index-date-range "2019-03-01 to 2023-03-31 by month"
--output-dir=output
--output-format=feather
outputs:
highly_sensitive:
cohort: output/input_bp002_5y*.feather
join_ethnicity:
run: >
cohort-joiner:v0.0.12
--lhs output/input_bp002*.feather
--rhs output/input_ethnicity.feather
--output-dir output/joined
needs: [generate_study_population_ethnicity, generate_study_population_bp002_1y_lookback, generate_study_population_bp002_5y_lookback]
outputs:
highly_sensitive:
cohort: output/joined/input_bp002*.feather
generate_measures_bp002_1y_lookback:
run: >
cohortextractor:latest generate_measures
--study-definition study_definition_bp002_1y_lookback
--output-dir=output/joined
needs: [join_ethnicity]
outputs:
moderately_sensitive:
measure_csv: output/joined/measure_bp002_1y*_rate.csv
generate_measures_bp002_5y_lookback:
run: >
cohortextractor:latest generate_measures
--study-definition study_definition_bp002_5y_lookback
--output-dir=output/joined
needs: [join_ethnicity]
outputs:
moderately_sensitive:
measure_csv: output/joined/measure_bp002_5y*_rate.csv
generate_deciles_charts:
run: >
deciles-charts:v0.0.15
--input-files output/joined/measure_*.csv
--output-dir output/joined/
config:
show_outer_percentiles: false
tables:
output: true
charts:
output: true
needs: [generate_measures_bp002_1y_lookback, generate_measures_bp002_5y_lookback]
outputs:
moderately_sensitive:
deciles_charts: output/joined/deciles_chart_*_*_practice_breakdown_rate.png
deciles_tables: output/joined/deciles_table_*_*_practice_breakdown_rate.csv
join_measures:
run: r:latest analysis/join_measures.R
needs: [generate_measures_bp002_1y_lookback, generate_measures_bp002_5y_lookback]
outputs:
moderately_sensitive:
bp002_achievement_csv: output/joined/measures/measures_bp002_achievem.csv