From 878f108b44b0d8793debec21495762419d328604 Mon Sep 17 00:00:00 2001 From: Clair Blacketer Date: Mon, 8 Jan 2018 13:18:53 -0500 Subject: [PATCH] Fixed PAYER_PLAN_PERIOD, changed STOP_REASON_SOURCE_VALUE to VARCHAR(50) from INTEGER, based on issue #147 --- BigQuery/OMOP CDM bigquery ddl.txt | 2 +- Impala/OMOP CDM impala ddl.txt | 2 +- Netezza/OMOP CDM netezza ddl.txt | 4 ++-- Oracle/OMOP CDM oracle ddl.txt | 3 +-- ParallelDataWarehouse/OMOP CDM pdw ddl.txt | 3 +-- PostgreSQL/OMOP CDM postgresql ddl.txt | 3 +-- Redshift/OMOP CDM redshift ddl.txt | 3 +-- Sql Server/OMOP CDM sql server ddl.txt | 3 +-- 8 files changed, 9 insertions(+), 14 deletions(-) diff --git a/BigQuery/OMOP CDM bigquery ddl.txt b/BigQuery/OMOP CDM bigquery ddl.txt index 385c177..5a5263b 100644 --- a/BigQuery/OMOP CDM bigquery ddl.txt +++ b/BigQuery/OMOP CDM bigquery ddl.txt @@ -551,7 +551,7 @@ create table payer_plan_period sponsor_source_concept_id integer null , family_source_value varchar(50) null , stop_reason_concept_id integer null , - stop_reason_source_value integer null , + stop_reason_source_value varchar(50) null , stop_reason_source_concept_id integer null ) ; diff --git a/Impala/OMOP CDM impala ddl.txt b/Impala/OMOP CDM impala ddl.txt index 3be1202..9fec86d 100644 --- a/Impala/OMOP CDM impala ddl.txt +++ b/Impala/OMOP CDM impala ddl.txt @@ -1134,7 +1134,7 @@ CREATE TABLE payer_plan_period stop_reason_concept_id INTEGER, - stop_reason_source_value INTEGER, + stop_reason_source_value VARCHAR(50), stop_reason_source_concept_id INTEGER ) diff --git a/Netezza/OMOP CDM netezza ddl.txt b/Netezza/OMOP CDM netezza ddl.txt index d140cca..02c5706 100644 --- a/Netezza/OMOP CDM netezza ddl.txt +++ b/Netezza/OMOP CDM netezza ddl.txt @@ -28,7 +28,7 @@ netezza script to create OMOP common data model version 5.3 -last revised: 6-Nov-2017 +last revised: 8-Jan-2018 Authors: Patrick Ryan, Christian Reich, Clair Blacketer @@ -665,7 +665,7 @@ CREATE TABLE payer_plan_period sponsor_source_concept_id INTEGER NULL , family_source_value VARCHAR(50) NULL , stop_reason_concept_id INTEGER NULL , - stop_reason_source_value INTEGER NULL , + stop_reason_source_value VARCHAR(50) NULL , stop_reason_source_concept_id INTEGER NULL ) DISTRIBUTE ON (person_id) diff --git a/Oracle/OMOP CDM oracle ddl.txt b/Oracle/OMOP CDM oracle ddl.txt index d61bdc2..4b2a5ba 100644 --- a/Oracle/OMOP CDM oracle ddl.txt +++ b/Oracle/OMOP CDM oracle ddl.txt @@ -447,7 +447,6 @@ CREATE TABLE measurement person_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , - measurement_time VARCHAR(10) NULL , measurement_datetime TIMESTAMP NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , @@ -623,7 +622,7 @@ CREATE TABLE payer_plan_period sponsor_source_concept_id INTEGER NULL , family_source_value VARCHAR(50) NULL , stop_reason_concept_id INTEGER NULL , - stop_reason_source_value INTEGER NULL , + stop_reason_source_value VARCHAR(50) NULL , stop_reason_source_concept_id INTEGER NULL ) ; diff --git a/ParallelDataWarehouse/OMOP CDM pdw ddl.txt b/ParallelDataWarehouse/OMOP CDM pdw ddl.txt index 1c71fac..847769e 100644 --- a/ParallelDataWarehouse/OMOP CDM pdw ddl.txt +++ b/ParallelDataWarehouse/OMOP CDM pdw ddl.txt @@ -422,7 +422,6 @@ IF XACT_STATE() = 1 COMMIT; CREATE TABLE measurement person_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , - measurement_time VARCHAR(10) NULL , measurement_datetime DATETIME NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , @@ -590,7 +589,7 @@ IF XACT_STATE() = 1 COMMIT; CREATE TABLE payer_plan_period sponsor_source_concept_id INTEGER NULL , family_source_value VARCHAR(50) NULL , stop_reason_concept_id INTEGER NULL , - stop_reason_source_value INTEGER NULL , + stop_reason_source_value VARCHAR(50) NULL , stop_reason_source_concept_id INTEGER NULL ) WITH (DISTRIBUTION = HASH(person_id)); diff --git a/PostgreSQL/OMOP CDM postgresql ddl.txt b/PostgreSQL/OMOP CDM postgresql ddl.txt index 4c0b3ed..42822f0 100644 --- a/PostgreSQL/OMOP CDM postgresql ddl.txt +++ b/PostgreSQL/OMOP CDM postgresql ddl.txt @@ -447,7 +447,6 @@ CREATE TABLE measurement person_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , - measurement_time VARCHAR(10) NULL , measurement_datetime TIMESTAMP NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , @@ -623,7 +622,7 @@ CREATE TABLE payer_plan_period sponsor_source_concept_id INTEGER NULL , family_source_value VARCHAR(50) NULL , stop_reason_concept_id INTEGER NULL , - stop_reason_source_value INTEGER NULL , + stop_reason_source_value VARCHAR(50) NULL , stop_reason_source_concept_id INTEGER NULL ) ; diff --git a/Redshift/OMOP CDM redshift ddl.txt b/Redshift/OMOP CDM redshift ddl.txt index de4d591..b81dec9 100644 --- a/Redshift/OMOP CDM redshift ddl.txt +++ b/Redshift/OMOP CDM redshift ddl.txt @@ -422,7 +422,6 @@ CREATE TABLE measurement person_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , - measurement_time VARCHAR(10) NULL , measurement_datetime TIMESTAMP NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , @@ -590,7 +589,7 @@ CREATE TABLE payer_plan_period sponsor_source_concept_id INTEGER NULL , family_source_value VARCHAR(50) NULL , stop_reason_concept_id INTEGER NULL , - stop_reason_source_value INTEGER NULL , + stop_reason_source_value VARCHAR(50) NULL , stop_reason_source_concept_id INTEGER NULL ) DISTKEY(person_id); diff --git a/Sql Server/OMOP CDM sql server ddl.txt b/Sql Server/OMOP CDM sql server ddl.txt index 9d635f2..6b11877 100644 --- a/Sql Server/OMOP CDM sql server ddl.txt +++ b/Sql Server/OMOP CDM sql server ddl.txt @@ -447,7 +447,6 @@ CREATE TABLE measurement person_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , - measurement_time VARCHAR(10) NULL , measurement_datetime DATETIME NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , @@ -623,7 +622,7 @@ CREATE TABLE payer_plan_period sponsor_source_concept_id INTEGER NULL , family_source_value VARCHAR(50) NULL , stop_reason_concept_id INTEGER NULL , - stop_reason_source_value INTEGER NULL , + stop_reason_source_value VARCHAR(50) NULL , stop_reason_source_concept_id INTEGER NULL ) ;