-
Notifications
You must be signed in to change notification settings - Fork 47
/
etl.sql
80 lines (80 loc) · 1.29 KB
/
etl.sql
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
DELETE FROM omop.cohort_definition;
INSERT INTO omop.cohort_definition
(
cohort_definition_id
, cohort_definition_name
, cohort_definition_description
, definition_type_concept_id
, cohort_definition_syntax
, subject_concept_id
, cohort_initiation_date
)
VALUES
( 0
, 'No particular cohort'
, null
, 0
, null
, 0
, now()
)
,
( 1
, 'angus severe'
, 'jerome description'
, 0
, ''
-- , 'visit_occurrence'
, 8
, now()
)
,
( 2
, 'angus shock'
, 'jerome description'
, 0
, ''
-- , 'visit_occurrence'
, 8
, now()
)
,
( 3
, 'accp severe'
, 'jerome description'
, 0
, ''
--, 'visit_occurrence'
, 8
, now()
)
,
( 4
, 'accp shock'
, 'jerome description'
, 0
, ''
-- , 'visit_occurrence'
, 8
, now()
)
,
( 5
, 'sepsis3 severe'
, 'jerome description'
, 0
, ''
-- , 'visit_occurrence'
, 8
, now()
)
,
( 6
, 'sepsis3 shock'
, 'jerome description'
, 0
, ''
-- , 'visit_occurrence'
, 8
, now()
);