Fixed PAYER_PLAN_PERIOD, changed STOP_REASON_SOURCE_VALUE to VARCHAR(50) from INTEGER, based on issue #147

This commit is contained in:
Clair Blacketer 2018-01-08 13:18:53 -05:00
parent 8f67d55af2
commit 878f108b44
8 changed files with 9 additions and 14 deletions

View File

@ -551,7 +551,7 @@ create table payer_plan_period
sponsor_source_concept_id integer null , sponsor_source_concept_id integer null ,
family_source_value varchar(50) null , family_source_value varchar(50) null ,
stop_reason_concept_id integer 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 stop_reason_source_concept_id integer null
) )
; ;

View File

@ -1134,7 +1134,7 @@ CREATE TABLE payer_plan_period
stop_reason_concept_id INTEGER, stop_reason_concept_id INTEGER,
stop_reason_source_value INTEGER, stop_reason_source_value VARCHAR(50),
stop_reason_source_concept_id INTEGER stop_reason_source_concept_id INTEGER
) )

View File

@ -28,7 +28,7 @@
netezza script to create OMOP common data model version 5.3 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 Authors: Patrick Ryan, Christian Reich, Clair Blacketer
@ -665,7 +665,7 @@ CREATE TABLE payer_plan_period
sponsor_source_concept_id INTEGER NULL , sponsor_source_concept_id INTEGER NULL ,
family_source_value VARCHAR(50) NULL , family_source_value VARCHAR(50) NULL ,
stop_reason_concept_id INTEGER 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 stop_reason_source_concept_id INTEGER NULL
) )
DISTRIBUTE ON (person_id) DISTRIBUTE ON (person_id)

View File

@ -447,7 +447,6 @@ CREATE TABLE measurement
person_id INTEGER NOT NULL , person_id INTEGER NOT NULL ,
measurement_concept_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL ,
measurement_date DATE NOT NULL , measurement_date DATE NOT NULL ,
measurement_time VARCHAR(10) NULL ,
measurement_datetime TIMESTAMP NULL , measurement_datetime TIMESTAMP NULL ,
measurement_type_concept_id INTEGER NOT NULL , measurement_type_concept_id INTEGER NOT NULL ,
operator_concept_id INTEGER NULL , operator_concept_id INTEGER NULL ,
@ -623,7 +622,7 @@ CREATE TABLE payer_plan_period
sponsor_source_concept_id INTEGER NULL , sponsor_source_concept_id INTEGER NULL ,
family_source_value VARCHAR(50) NULL , family_source_value VARCHAR(50) NULL ,
stop_reason_concept_id INTEGER 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 stop_reason_source_concept_id INTEGER NULL
) )
; ;

View File

@ -422,7 +422,6 @@ IF XACT_STATE() = 1 COMMIT; CREATE TABLE measurement
person_id INTEGER NOT NULL , person_id INTEGER NOT NULL ,
measurement_concept_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL ,
measurement_date DATE NOT NULL , measurement_date DATE NOT NULL ,
measurement_time VARCHAR(10) NULL ,
measurement_datetime DATETIME NULL , measurement_datetime DATETIME NULL ,
measurement_type_concept_id INTEGER NOT NULL , measurement_type_concept_id INTEGER NOT NULL ,
operator_concept_id INTEGER 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 , sponsor_source_concept_id INTEGER NULL ,
family_source_value VARCHAR(50) NULL , family_source_value VARCHAR(50) NULL ,
stop_reason_concept_id INTEGER 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 stop_reason_source_concept_id INTEGER NULL
) )
WITH (DISTRIBUTION = HASH(person_id)); WITH (DISTRIBUTION = HASH(person_id));

View File

@ -447,7 +447,6 @@ CREATE TABLE measurement
person_id INTEGER NOT NULL , person_id INTEGER NOT NULL ,
measurement_concept_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL ,
measurement_date DATE NOT NULL , measurement_date DATE NOT NULL ,
measurement_time VARCHAR(10) NULL ,
measurement_datetime TIMESTAMP NULL , measurement_datetime TIMESTAMP NULL ,
measurement_type_concept_id INTEGER NOT NULL , measurement_type_concept_id INTEGER NOT NULL ,
operator_concept_id INTEGER NULL , operator_concept_id INTEGER NULL ,
@ -623,7 +622,7 @@ CREATE TABLE payer_plan_period
sponsor_source_concept_id INTEGER NULL , sponsor_source_concept_id INTEGER NULL ,
family_source_value VARCHAR(50) NULL , family_source_value VARCHAR(50) NULL ,
stop_reason_concept_id INTEGER 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 stop_reason_source_concept_id INTEGER NULL
) )
; ;

View File

@ -422,7 +422,6 @@ CREATE TABLE measurement
person_id INTEGER NOT NULL , person_id INTEGER NOT NULL ,
measurement_concept_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL ,
measurement_date DATE NOT NULL , measurement_date DATE NOT NULL ,
measurement_time VARCHAR(10) NULL ,
measurement_datetime TIMESTAMP NULL , measurement_datetime TIMESTAMP NULL ,
measurement_type_concept_id INTEGER NOT NULL , measurement_type_concept_id INTEGER NOT NULL ,
operator_concept_id INTEGER NULL , operator_concept_id INTEGER NULL ,
@ -590,7 +589,7 @@ CREATE TABLE payer_plan_period
sponsor_source_concept_id INTEGER NULL , sponsor_source_concept_id INTEGER NULL ,
family_source_value VARCHAR(50) NULL , family_source_value VARCHAR(50) NULL ,
stop_reason_concept_id INTEGER 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 stop_reason_source_concept_id INTEGER NULL
) )
DISTKEY(person_id); DISTKEY(person_id);

View File

@ -447,7 +447,6 @@ CREATE TABLE measurement
person_id INTEGER NOT NULL , person_id INTEGER NOT NULL ,
measurement_concept_id INTEGER NOT NULL , measurement_concept_id INTEGER NOT NULL ,
measurement_date DATE NOT NULL , measurement_date DATE NOT NULL ,
measurement_time VARCHAR(10) NULL ,
measurement_datetime DATETIME NULL , measurement_datetime DATETIME NULL ,
measurement_type_concept_id INTEGER NOT NULL , measurement_type_concept_id INTEGER NOT NULL ,
operator_concept_id INTEGER NULL , operator_concept_id INTEGER NULL ,
@ -623,7 +622,7 @@ CREATE TABLE payer_plan_period
sponsor_source_concept_id INTEGER NULL , sponsor_source_concept_id INTEGER NULL ,
family_source_value VARCHAR(50) NULL , family_source_value VARCHAR(50) NULL ,
stop_reason_concept_id INTEGER 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 stop_reason_source_concept_id INTEGER NULL
) )
; ;