Fixed PAYER_PLAN_PERIOD, changed STOP_REASON_SOURCE_VALUE to VARCHAR(50) from INTEGER, based on issue #147
This commit is contained in:
parent
8f67d55af2
commit
878f108b44
|
@ -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
|
||||
)
|
||||
;
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
;
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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
|
||||
)
|
||||
;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
)
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue