From 230a1b09611995742f8592c975e389b1f6c4ab52 Mon Sep 17 00:00:00 2001 From: Karthik Natarajan Date: Thu, 12 Jan 2017 16:10:00 -0500 Subject: [PATCH] Made changes to adhere to the new CDM changes for version 5.1 for Oracle, Postgres, and SQL Server. Added death_datetime to the death table --- Oracle/OMOP CDM ddl - Oracle.sql | 3 ++- PostgreSQL/OMOP CDM ddl - PostgreSQL.sql | 3 ++- Sql Server/OMOP CDM ddl - SQL Server.sql | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Oracle/OMOP CDM ddl - Oracle.sql b/Oracle/OMOP CDM ddl - Oracle.sql index 11928ac..015de9c 100644 --- a/Oracle/OMOP CDM ddl - Oracle.sql +++ b/Oracle/OMOP CDM ddl - Oracle.sql @@ -289,7 +289,8 @@ CREATE TABLE death ( person_id INTEGER NOT NULL , death_date DATE NOT NULL , - death_type_concept_id INTEGER NOT NULL , + death_datetime TIMESTAMP WITH TIME ZONE NULL , + death_type_concept_id INTEGER NOT NULL , cause_concept_id INTEGER NULL , cause_source_value VARCHAR(50) NULL, cause_source_concept_id INTEGER NULL diff --git a/PostgreSQL/OMOP CDM ddl - PostgreSQL.sql b/PostgreSQL/OMOP CDM ddl - PostgreSQL.sql index 3d4e292..e3a2a54 100644 --- a/PostgreSQL/OMOP CDM ddl - PostgreSQL.sql +++ b/PostgreSQL/OMOP CDM ddl - PostgreSQL.sql @@ -289,7 +289,8 @@ CREATE TABLE death ( person_id INTEGER NOT NULL , death_date DATE NOT NULL , - death_type_concept_id INTEGER NOT NULL , + death_datetime TIMESTAMP NULL , + death_type_concept_id INTEGER NOT NULL , cause_concept_id INTEGER NULL , cause_source_value VARCHAR(50) NULL, cause_source_concept_id INTEGER NULL diff --git a/Sql Server/OMOP CDM ddl - SQL Server.sql b/Sql Server/OMOP CDM ddl - SQL Server.sql index 2b30a0e..862a18f 100644 --- a/Sql Server/OMOP CDM ddl - SQL Server.sql +++ b/Sql Server/OMOP CDM ddl - SQL Server.sql @@ -289,6 +289,7 @@ CREATE TABLE death ( person_id INTEGER NOT NULL , death_date DATE NOT NULL , + death_datetime DATETIME2 NULL , death_type_concept_id INTEGER NOT NULL , cause_concept_id INTEGER NULL , cause_source_value VARCHAR(50) NULL,