Merge pull request #158 from OHDSI/cdm_v5.3.-issue-149

Closes #149, vocabulary_version no longer required
This commit is contained in:
clairblacketer 2018-02-07 19:52:17 -05:00 committed by GitHub
commit 97d93505d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -17,7 +17,7 @@ create table vocabulary (
vocabulary_id varchar(20) not null, vocabulary_id varchar(20) not null,
vocabulary_name varchar(255) not null, vocabulary_name varchar(255) not null,
vocabulary_reference varchar(255) not null, vocabulary_reference varchar(255) not null,
vocabulary_version varchar(255) not null, vocabulary_version varchar(255) null,
vocabulary_concept_id integer not null vocabulary_concept_id integer not null
) )
; ;

View File

@ -5,7 +5,7 @@ Field|Required|Type|Description
|vocabulary_id|Yes|varchar(20)|A unique identifier for each Vocabulary, such as ICD9CM, SNOMED, Visit.| |vocabulary_id|Yes|varchar(20)|A unique identifier for each Vocabulary, such as ICD9CM, SNOMED, Visit.|
|vocabulary_name|Yes|varchar(255)|The name describing the vocabulary, for example "International Classification of Diseases, Ninth Revision, Clinical Modification, Volume 1 and 2 (NCHS)" etc.| |vocabulary_name|Yes|varchar(255)|The name describing the vocabulary, for example "International Classification of Diseases, Ninth Revision, Clinical Modification, Volume 1 and 2 (NCHS)" etc.|
|vocabulary_reference|Yes|varchar(255)|External reference to documentation or available download of the about the vocabulary.| |vocabulary_reference|Yes|varchar(255)|External reference to documentation or available download of the about the vocabulary.|
|vocabulary_version|Yes|varchar(255)|Version of the Vocabulary as indicated in the source.| |vocabulary_version|No|varchar(255)|Version of the Vocabulary as indicated in the source.|
|vocabulary_concept_id|Yes|integer|A foreign key that refers to a standard concept identifier in the CONCEPT table for the Vocabulary the VOCABULARY record belongs to.| |vocabulary_concept_id|Yes|integer|A foreign key that refers to a standard concept identifier in the CONCEPT table for the Vocabulary the VOCABULARY record belongs to.|
### Conventions ### Conventions

View File

@ -64,7 +64,7 @@ CREATE TABLE vocabulary (
vocabulary_id VARCHAR(20) NOT NULL, vocabulary_id VARCHAR(20) NOT NULL,
vocabulary_name VARCHAR(255) NOT NULL, vocabulary_name VARCHAR(255) NOT NULL,
vocabulary_reference VARCHAR(255) NOT NULL, vocabulary_reference VARCHAR(255) NOT NULL,
vocabulary_version VARCHAR(255) NOT NULL, vocabulary_version VARCHAR(255) NULL,
vocabulary_concept_id INTEGER NOT NULL vocabulary_concept_id INTEGER NOT NULL
) )
DISTRIBUTE ON RANDOM DISTRIBUTE ON RANDOM

View File

@ -62,7 +62,7 @@ CREATE TABLE vocabulary (
vocabulary_id VARCHAR(20) NOT NULL, vocabulary_id VARCHAR(20) NOT NULL,
vocabulary_name VARCHAR(255) NOT NULL, vocabulary_name VARCHAR(255) NOT NULL,
vocabulary_reference VARCHAR(255) NOT NULL, vocabulary_reference VARCHAR(255) NOT NULL,
vocabulary_version VARCHAR(255) NOT NULL, vocabulary_version VARCHAR(255) NULL,
vocabulary_concept_id INTEGER NOT NULL vocabulary_concept_id INTEGER NOT NULL
) )
; ;

View File

@ -60,7 +60,7 @@ WITH (DISTRIBUTION = REPLICATE);
IF XACT_STATE() = 1 COMMIT; CREATE TABLE vocabulary (vocabulary_id VARCHAR(20) NOT NULL, IF XACT_STATE() = 1 COMMIT; CREATE TABLE vocabulary (vocabulary_id VARCHAR(20) NOT NULL,
vocabulary_name VARCHAR(255) NOT NULL, vocabulary_name VARCHAR(255) NOT NULL,
vocabulary_reference VARCHAR(255) NOT NULL, vocabulary_reference VARCHAR(255) NOT NULL,
vocabulary_version VARCHAR(255) NOT NULL, vocabulary_version VARCHAR(255) NULL,
vocabulary_concept_id INTEGER NOT NULL vocabulary_concept_id INTEGER NOT NULL
) )
WITH (DISTRIBUTION = REPLICATE); WITH (DISTRIBUTION = REPLICATE);

View File

@ -62,7 +62,7 @@ CREATE TABLE vocabulary (
vocabulary_id VARCHAR(20) NOT NULL, vocabulary_id VARCHAR(20) NOT NULL,
vocabulary_name VARCHAR(255) NOT NULL, vocabulary_name VARCHAR(255) NOT NULL,
vocabulary_reference VARCHAR(255) NOT NULL, vocabulary_reference VARCHAR(255) NOT NULL,
vocabulary_version VARCHAR(255) NOT NULL, vocabulary_version VARCHAR(255) NULL,
vocabulary_concept_id INTEGER NOT NULL vocabulary_concept_id INTEGER NOT NULL
) )
; ;

View File

@ -60,7 +60,7 @@ DISTSTYLE ALL;
CREATE TABLE vocabulary (vocabulary_id VARCHAR(20) NOT NULL, CREATE TABLE vocabulary (vocabulary_id VARCHAR(20) NOT NULL,
vocabulary_name VARCHAR(255) NOT NULL, vocabulary_name VARCHAR(255) NOT NULL,
vocabulary_reference VARCHAR(255) NOT NULL, vocabulary_reference VARCHAR(255) NOT NULL,
vocabulary_version VARCHAR(255) NOT NULL, vocabulary_version VARCHAR(255) NULL,
vocabulary_concept_id INTEGER NOT NULL vocabulary_concept_id INTEGER NOT NULL
) )
DISTSTYLE ALL; DISTSTYLE ALL;

View File

@ -62,7 +62,7 @@ CREATE TABLE vocabulary (
vocabulary_id VARCHAR(20) NOT NULL, vocabulary_id VARCHAR(20) NOT NULL,
vocabulary_name VARCHAR(255) NOT NULL, vocabulary_name VARCHAR(255) NOT NULL,
vocabulary_reference VARCHAR(255) NOT NULL, vocabulary_reference VARCHAR(255) NOT NULL,
vocabulary_version VARCHAR(255) NOT NULL, vocabulary_version VARCHAR(255) NULL,
vocabulary_concept_id INTEGER NOT NULL vocabulary_concept_id INTEGER NOT NULL
) )
; ;