generated from opensafely/research-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yaml
65 lines (51 loc) · 1.88 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
version: '3.0'
expectations:
population_size: 1000
actions:
## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
## DO NOT EDIT project.yaml DIRECTLY
## This file is created by create_project_actions.R
## Edit and run create_project_actions.R to update the project.yaml
## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
## Generate vaccination eligibility information
vax_eligibility_inputs:
run: r:latest analysis/dataset_definition/metadates.R
outputs:
highly_sensitive:
study_dates_json: output/study_dates.json
## Generate dates for all cohorts
generate_dataset_index_dates:
run: ehrql:v1 generate-dataset analysis/dataset_definition/dataset_definition_dates.py
--output output/index_dates.csv.gz
needs:
- vax_eligibility_inputs
outputs:
highly_sensitive:
dataset: output/index_dates.csv.gz
## Generate study population - prevax
generate_study_population_prevax:
run: ehrql:v1 generate-dataset analysis/dataset_definition/dataset_definition_prevax.py
--output output/input_prevax.csv.gz
needs:
- generate_dataset_index_dates
outputs:
highly_sensitive:
cohort: output/input_prevax.csv.gz
## Generate study population - vax
generate_study_population_vax:
run: ehrql:v1 generate-dataset analysis/dataset_definition/dataset_definition_vax.py
--output output/input_vax.csv.gz
needs:
- generate_dataset_index_dates
outputs:
highly_sensitive:
cohort: output/input_vax.csv.gz
## Generate study population - unvax
generate_study_population_unvax:
run: ehrql:v1 generate-dataset analysis/dataset_definition/dataset_definition_unvax.py
--output output/input_unvax.csv.gz
needs:
- generate_dataset_index_dates
outputs:
highly_sensitive:
cohort: output/input_unvax.csv.gz