diff --git a/BigQuery/OMOP CDM bigquery ddl.txt b/BigQuery/OMOP CDM bigquery ddl.txt index 1ff8bec..2bc4bb3 100644 --- a/BigQuery/OMOP CDM bigquery ddl.txt +++ b/BigQuery/OMOP CDM bigquery ddl.txt @@ -391,6 +391,7 @@ create table measurement measurement_concept_id integer not null , measurement_date date not null , measurement_datetime datetime null , + measurement_time varchar(10) null , measurement_type_concept_id integer not null , operator_concept_id integer null , value_as_number float null , diff --git a/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/MEASUREMENT.md b/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/MEASUREMENT.md index f683a82..c443a3d 100644 --- a/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/MEASUREMENT.md +++ b/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/MEASUREMENT.md @@ -7,6 +7,7 @@ Field|Required|Type|Description |measurement_concept_id|Yes|integer|A foreign key to the standard measurement concept identifier in the Standardized Vocabularies.| |measurement_date|Yes|date|The date of the Measurement.| |measurement_datetime|No|datetime|The date and time of the Measurement. Some database systems don't have a datatype of time. To accomodate all temporal analyses, datatype datetime can be used (combining measurement_date and measurement_time [forum discussion](http://forums.ohdsi.org/t/date-time-and-datetime-problem-and-the-world-of-hours-and-1day/314))| +|measurement_time |No|varchar(10)|The time of the Measurement. This is present for backwards compatibility and will deprecated in an upcoming version| |measurement_type_concept_id|Yes|integer|A foreign key to the predefined Concept in the Standardized Vocabularies reflecting the provenance from where the Measurement record was recorded.| |operator_concept_id|No|integer|A foreign key identifier to the predefined Concept in the Standardized Vocabularies reflecting the mathematical operator that is applied to the value_as_number. Operators are <, <=, =, >=, >.| |value_as_number|No|float|A Measurement result where the result is expressed as a numeric value.| diff --git a/Impala/OMOP CDM impala ddl.txt b/Impala/OMOP CDM impala ddl.txt index 9fec86d..4b35d03 100644 --- a/Impala/OMOP CDM impala ddl.txt +++ b/Impala/OMOP CDM impala ddl.txt @@ -818,6 +818,8 @@ CREATE TABLE measurement measurement_datetime TIMESTAMP, + measurement_time VARCHAR(10), + measurement_type_concept_id INTEGER, operator_concept_id INTEGER, diff --git a/Netezza/OMOP CDM netezza ddl.txt b/Netezza/OMOP CDM netezza ddl.txt index 4bdc44e..268eb26 100644 --- a/Netezza/OMOP CDM netezza ddl.txt +++ b/Netezza/OMOP CDM netezza ddl.txt @@ -480,6 +480,7 @@ CREATE TABLE measurement measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , measurement_datetime DATETIME NULL , + measurement_time VARCHAR(10) NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , value_as_number REAL NULL , diff --git a/Oracle/OMOP CDM oracle ddl.txt b/Oracle/OMOP CDM oracle ddl.txt index c1427c4..c8627f2 100644 --- a/Oracle/OMOP CDM oracle ddl.txt +++ b/Oracle/OMOP CDM oracle ddl.txt @@ -448,6 +448,7 @@ CREATE TABLE measurement measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , measurement_datetime TIMESTAMP NULL , + measurement_time VARCHAR(10) NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , value_as_number FLOAT NULL , diff --git a/ParallelDataWarehouse/OMOP CDM pdw ddl.txt b/ParallelDataWarehouse/OMOP CDM pdw ddl.txt index cdee639..f712047 100644 --- a/ParallelDataWarehouse/OMOP CDM pdw ddl.txt +++ b/ParallelDataWarehouse/OMOP CDM pdw ddl.txt @@ -423,6 +423,7 @@ IF XACT_STATE() = 1 COMMIT; CREATE TABLE measurement measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , measurement_datetime DATETIME NULL , + measurement_time VARCHAR(10) NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , value_as_number FLOAT NULL , diff --git a/PostgreSQL/OMOP CDM postgresql ddl.txt b/PostgreSQL/OMOP CDM postgresql ddl.txt index 1edef4a..afc3c81 100644 --- a/PostgreSQL/OMOP CDM postgresql ddl.txt +++ b/PostgreSQL/OMOP CDM postgresql ddl.txt @@ -448,13 +448,14 @@ CREATE TABLE measurement measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , measurement_datetime TIMESTAMP NULL , + measurement_time VARCHAR(10) NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , - value_as_number NUMERIC NULL , + value_as_number NUMERIC NULL , value_as_concept_id INTEGER NULL , unit_concept_id INTEGER NULL , - range_low NUMERIC NULL , - range_high NUMERIC NULL , + range_low NUMERIC NULL , + range_high NUMERIC NULL , provider_id INTEGER NULL , visit_occurrence_id INTEGER NULL , visit_detail_id INTEGER NULL , diff --git a/Redshift/OMOP CDM redshift ddl.txt b/Redshift/OMOP CDM redshift ddl.txt index eaef616..9aadf2c 100644 --- a/Redshift/OMOP CDM redshift ddl.txt +++ b/Redshift/OMOP CDM redshift ddl.txt @@ -423,6 +423,7 @@ CREATE TABLE measurement measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , measurement_datetime TIMESTAMP NULL , + measurement_time VARCHAR(10) NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , value_as_number FLOAT NULL , diff --git a/Sql Server/OMOP CDM sql server ddl.txt b/Sql Server/OMOP CDM sql server ddl.txt index f9c1552..f57770f 100644 --- a/Sql Server/OMOP CDM sql server ddl.txt +++ b/Sql Server/OMOP CDM sql server ddl.txt @@ -448,6 +448,7 @@ CREATE TABLE measurement measurement_concept_id INTEGER NOT NULL , measurement_date DATE NOT NULL , measurement_datetime DATETIME NULL , + measurement_time VARCHAR(10) NULL , measurement_type_concept_id INTEGER NOT NULL , operator_concept_id INTEGER NULL , value_as_number FLOAT NULL ,