commit
9c33c5478b
|
@ -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
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
|
@ -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));
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue