From d4a4d175fdf90c7d5effeafd5eae0e4b035b6137 Mon Sep 17 00:00:00 2001 From: Anthony Sena Date: Thu, 1 Sep 2016 13:56:50 -0400 Subject: [PATCH] Resolves OHDSI/CommonDataModel#32 box_size issue --- Oracle/OMOP CDM ddl - Oracle.sql | 1 + Oracle/VocabImport/drug_strength.ctl | 2 ++ PostgreSQL/OMOP CDM ddl - PostgreSQL.sql | 1 + Sql Server/OMOP CDM ddl - SQL Server.sql | 1 + 4 files changed, 5 insertions(+) diff --git a/Oracle/OMOP CDM ddl - Oracle.sql b/Oracle/OMOP CDM ddl - Oracle.sql index e619552..17dc75d 100644 --- a/Oracle/OMOP CDM ddl - Oracle.sql +++ b/Oracle/OMOP CDM ddl - Oracle.sql @@ -156,6 +156,7 @@ CREATE TABLE drug_strength ( numerator_unit_concept_id INTEGER NULL, denominator_value FLOAT NULL, denominator_unit_concept_id INTEGER NULL, + box_size INTEGER NULL, valid_start_date DATE NOT NULL, valid_end_date DATE NOT NULL, invalid_reason VARCHAR(1) NULL diff --git a/Oracle/VocabImport/drug_strength.ctl b/Oracle/VocabImport/drug_strength.ctl index e747499..f94ec29 100644 --- a/Oracle/VocabImport/drug_strength.ctl +++ b/Oracle/VocabImport/drug_strength.ctl @@ -12,7 +12,9 @@ trailing nullcols amount_unit_concept_id, numerator_value, numerator_unit_concept_id, + denominator_value, denominator_unit_concept_id, + box_size, valid_start_date DATE 'YYYYMMDD', valid_end_date DATE 'YYYYMMDD', invalid_reason diff --git a/PostgreSQL/OMOP CDM ddl - PostgreSQL.sql b/PostgreSQL/OMOP CDM ddl - PostgreSQL.sql index fd66f62..9f40559 100644 --- a/PostgreSQL/OMOP CDM ddl - PostgreSQL.sql +++ b/PostgreSQL/OMOP CDM ddl - PostgreSQL.sql @@ -156,6 +156,7 @@ CREATE TABLE drug_strength ( numerator_unit_concept_id INTEGER NULL, denominator_value NUMERIC NULL, denominator_unit_concept_id INTEGER NULL, + box_size INTEGER NULL, valid_start_date DATE NOT NULL, valid_end_date DATE NOT NULL, invalid_reason VARCHAR(1) NULL diff --git a/Sql Server/OMOP CDM ddl - SQL Server.sql b/Sql Server/OMOP CDM ddl - SQL Server.sql index 35c17c1..fdb4855 100644 --- a/Sql Server/OMOP CDM ddl - SQL Server.sql +++ b/Sql Server/OMOP CDM ddl - SQL Server.sql @@ -156,6 +156,7 @@ CREATE TABLE drug_strength ( numerator_unit_concept_id INTEGER NULL, denominator_value FLOAT NULL, denominator_unit_concept_id INTEGER NULL, + box_size INTEGER NULL, valid_start_date DATE NOT NULL, valid_end_date DATE NOT NULL, invalid_reason VARCHAR(1) NULL