Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cdm v6 #218

Merged
merged 58 commits into from
Oct 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
7e4b64b
CDM v6 initial commit
clairblacketer Aug 31, 2018
1c776a0
Initial wiki files to begin editing for v6.0
clairblacketer Sep 4, 2018
461601c
CDM v6 updates to background and data model conventions
clairblacketer Sep 5, 2018
ba880b2
Background updates for cdm v6
clairblacketer Sep 5, 2018
2ff3b82
License update cdm v6
clairblacketer Sep 5, 2018
a078310
death, device, drug, condition wiki files
clairblacketer Sep 6, 2018
72042be
condition wiki update
clairblacketer Sep 6, 2018
7afa958
condition occurrence wiki file convention table
clairblacketer Sep 6, 2018
eaa2768
Added lists to tables
clairblacketer Sep 6, 2018
403c763
Fixed convention #10 list
clairblacketer Sep 19, 2018
0a4c76b
Fixed convention numbering
clairblacketer Sep 19, 2018
93c48f7
Merge branch 'cdm_v6' of https://github.com/OHDSI/CommonDataModel int…
clairblacketer Sep 19, 2018
6dd6626
Fixed prior merge commit
clairblacketer Sep 19, 2018
4d53d7d
Added list to convention #6
clairblacketer Sep 19, 2018
9e4ae06
Corrections after results from testers
clairblacketer Sep 20, 2018
8c6ebe5
Addition of sql server results schema
clairblacketer Sep 20, 2018
eee81f6
Impala, Oracle, and Netezza edits from testers
clairblacketer Sep 24, 2018
62207c4
Fixes to bigquery as a result of testing and bigquery, impala, oracle…
clairblacketer Sep 24, 2018
86dbcec
Fixes from testers for pdw, redshit, postgres and sql server and surv…
clairblacketer Sep 25, 2018
fc50239
Removed note_domain_id from note table
clairblacketer Sep 25, 2018
4a03f4f
Addition of death_datetime to all Person tables. Commit of documentat…
clairblacketer Sep 27, 2018
7736b30
Merge branch 'cdm_v6' of https://github.com/OHDSI/CommonDataModel int…
clairblacketer Sep 27, 2018
1847013
Added THEMIS convention around blank PROVIDER_ID
clairblacketer Sep 27, 2018
7d5be9b
Updates to standardized derived element documentation
clairblacketer Sep 27, 2018
c734c17
Merge branch 'cdm_v6' of https://github.com/OHDSI/CommonDataModel int…
clairblacketer Sep 27, 2018
37acf12
CDM v6.0 updates to economics tables
clairblacketer Sep 27, 2018
0a4c9fb
Fixed example
clairblacketer Sep 27, 2018
2686e73
Cost table updates
clairblacketer Sep 27, 2018
91d438a
Metadata and health system documentation for CDM v6.0
clairblacketer Sep 27, 2018
0fe150e
Vocabulary documentation updates
clairblacketer Sep 27, 2018
4cfb679
Added convention table to Care_Site
clairblacketer Sep 28, 2018
121a544
Update COST.md
clairblacketer Sep 28, 2018
9a0bd86
Bigquery vocab version null and era datetimes
clairblacketer Oct 2, 2018
35a4d66
Merge branch 'cdm_v6' of https://github.com/OHDSI/CommonDataModel int…
clairblacketer Oct 2, 2018
046feb3
Impala era datetimes
clairblacketer Oct 2, 2018
df9e11a
Updated files to include optional vocabulary version and datetimes in…
clairblacketer Oct 2, 2018
449c31e
FAQ updates
clairblacketer Oct 2, 2018
088ee4d
Added THEMIS issues to Payer_plan_period
clairblacketer Oct 2, 2018
0ef09f6
Added THEMIS issue #13 to VISIT_OCCURRENCE
clairblacketer Oct 2, 2018
7b11ba4
bigquery concept_ids not null
clairblacketer Oct 2, 2018
b5028c3
Updated place_of_service_concept_id to not null
clairblacketer Oct 2, 2018
2080e3c
concept_id not null updates
clairblacketer Oct 3, 2018
b43e419
Merge branch 'cdm_v6' of https://github.com/OHDSI/CommonDataModel int…
clairblacketer Oct 3, 2018
840690d
updated documentation to comply with themis issue #11(https://github.…
clairblacketer Oct 3, 2018
351ea98
Added THEMIS references to conventions in wiki files
clairblacketer Oct 4, 2018
93ac075
Fixed table issue
clairblacketer Oct 4, 2018
ee658b1
fixed conventions
clairblacketer Oct 4, 2018
ebed941
Moved one bullet
clairblacketer Oct 4, 2018
b61e7a0
CDM v6.0 updated README
clairblacketer Oct 9, 2018
17a1146
Merge branch 'cdm_v6' of https://github.com/OHDSI/CommonDataModel int…
clairblacketer Oct 9, 2018
b1455c5
fixed entity diagram
clairblacketer Oct 10, 2018
64e1070
added results schema wiki file
clairblacketer Oct 10, 2018
fe581d8
fixed images
clairblacketer Oct 10, 2018
cc5e8f7
Added v6.0 pdf
clairblacketer Oct 10, 2018
497dfe7
Added entity diagram
clairblacketer Oct 10, 2018
b52ca38
Update Standardized-Clinical-Data-Tables.md
clairblacketer Oct 10, 2018
0a599fb
Update Standardized-Clinical-Data-Tables.md
clairblacketer Oct 10, 2018
36ac30e
Merge pull request #217 from OHDSI/master
clairblacketer Oct 11, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions BigQuery/OMOP CDM Results bigquery ddl.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
Copyright 2018-08 Observational Health Data Sciences and Informatics


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

OMOP CDM v6.0 DDL

bigquery script to create OMOP common data model results schema version 6.0

last revised: 27-Aug-2018

Authors: Patrick Ryan, Christian Reich, Clair Blacketer
*/

#standardsql

--HINT DISTRIBUTE_ON_KEY(subject_id)
create table cohort
(
cohort_definition_id INT64 not null ,
subject_id INT64 not null ,
cohort_start_date date not null ,
cohort_end_date date not null
)
;


create table cohort_definition (
cohort_definition_id INT64 not null,
cohort_definition_name STRING not null,
cohort_definition_description STRING null,
definition_type_concept_id INT64 not null,
cohort_definition_syntax STRING null,
subject_concept_id INT64 not null,
cohort_initiation_date date null
)
;
Loading