Skip to content

Commit 9a66851

Browse files
Final cdm v5.3 addition, moved new DDLs to correct locations
1 parent 38a0b9e commit 9a66851

62 files changed

Lines changed: 8759 additions & 6885 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.

BigQuery/OMOP CDM bigquery ddl.txt

Lines changed: 651 additions & 0 deletions
Large diffs are not rendered by default.

BigQuery/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Common-Data-Model / BigQuery
2+
=================
3+
4+
This folder contains the script for Google BigQuery.

DDLGeneratr/inst/sql/sql_server/OMOP CDM constraints.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ ALTER TABLE visit_occurrence ADD CONSTRAINT fpk_visit_provider FOREIGN KEY (prov
173173

174174
ALTER TABLE visit_occurrence ADD CONSTRAINT fpk_visit_care_site FOREIGN KEY (care_site_id) REFERENCES care_site (care_site_id);
175175

176-
ALTER TABLE visit_occurrence ADD CONSTRAINT fpk_visit_concept_s FOREIGN KEY (visit_source_concept_id) REFERENCES concept (concept_id);
176+
ALTER TABLE visit_occurrence ADD CONSTRAINT fpk_ visit_concept_s FOREIGN KEY (visit_source_concept_id) REFERENCES concept (concept_id);
177177

178178
ALTER TABLE visit_occurrence ADD CONSTRAINT fpk_visit_admitting_s FOREIGN KEY (admitting_source_concept_id) REFERENCES concept (concept_id);
179179

DDLGeneratr/inst/sql/sql_server/OMOP CDM ddl.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ CREATE TABLE note
490490

491491
CREATE TABLE note_nlp
492492
(
493-
note_nlp_id BIGINT NOT NULL ,
493+
note_nlp_id INTEGER NOT NULL ,
494494
note_id INTEGER NOT NULL ,
495495
section_concept_id INTEGER NULL ,
496496
snippet VARCHAR(250) NULL ,

DDLGeneratr/output/bigquery/OMOP CDM bigquery ddl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ create table note
491491

492492
create table note_nlp
493493
(
494-
note_nlp_id bigint not null ,
494+
note_nlp_id integer not null ,
495495
note_id integer not null ,
496496
section_concept_id integer null ,
497497
snippet varchar(250) null ,

0 commit comments

Comments
 (0)