Skip to content

Commit b69d6fd

Browse files
Merge pull request #218 from OHDSI/cdm_v6
Cdm v6
2 parents 2529ef5 + 36ac30e commit b69d6fd

95 files changed

Lines changed: 6170 additions & 6102 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
Copyright 2018-08 Observational Health Data Sciences and Informatics
3+
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
17+
OMOP CDM v6.0 DDL
18+
19+
bigquery script to create OMOP common data model results schema version 6.0
20+
21+
last revised: 27-Aug-2018
22+
23+
Authors: Patrick Ryan, Christian Reich, Clair Blacketer
24+
*/
25+
26+
#standardsql
27+
28+
--HINT DISTRIBUTE_ON_KEY(subject_id)
29+
create table cohort
30+
(
31+
cohort_definition_id INT64 not null ,
32+
subject_id INT64 not null ,
33+
cohort_start_date date not null ,
34+
cohort_end_date date not null
35+
)
36+
;
37+
38+
39+
create table cohort_definition (
40+
cohort_definition_id INT64 not null,
41+
cohort_definition_name STRING not null,
42+
cohort_definition_description STRING null,
43+
definition_type_concept_id INT64 not null,
44+
cohort_definition_syntax STRING null,
45+
subject_concept_id INT64 not null,
46+
cohort_initiation_date date null
47+
)
48+
;

0 commit comments

Comments
 (0)