Merge pull request #158 from OHDSI/cdm_v5.3.-issue-149
Closes #149, vocabulary_version no longer required
This commit is contained in:
commit
97d93505d6
|
@ -17,7 +17,7 @@ create table vocabulary (
|
|||
vocabulary_id varchar(20) not null,
|
||||
vocabulary_name 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
|
||||
)
|
||||
;
|
||||
|
|
|
@ -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_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_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.|
|
||||
|
||||
### Conventions
|
||||
|
|
|
@ -64,7 +64,7 @@ CREATE TABLE vocabulary (
|
|||
vocabulary_id VARCHAR(20) NOT NULL,
|
||||
vocabulary_name 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
|
||||
)
|
||||
DISTRIBUTE ON RANDOM
|
||||
|
|
|
@ -62,7 +62,7 @@ CREATE TABLE vocabulary (
|
|||
vocabulary_id VARCHAR(20) NOT NULL,
|
||||
vocabulary_name 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
|
||||
)
|
||||
;
|
||||
|
|
|
@ -60,7 +60,7 @@ WITH (DISTRIBUTION = REPLICATE);
|
|||
IF XACT_STATE() = 1 COMMIT; CREATE TABLE vocabulary (vocabulary_id VARCHAR(20) NOT NULL,
|
||||
vocabulary_name 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
|
||||
)
|
||||
WITH (DISTRIBUTION = REPLICATE);
|
||||
|
|
|
@ -62,7 +62,7 @@ CREATE TABLE vocabulary (
|
|||
vocabulary_id VARCHAR(20) NOT NULL,
|
||||
vocabulary_name 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
|
||||
)
|
||||
;
|
||||
|
|
|
@ -60,7 +60,7 @@ DISTSTYLE ALL;
|
|||
CREATE TABLE vocabulary (vocabulary_id VARCHAR(20) NOT NULL,
|
||||
vocabulary_name 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
|
||||
)
|
||||
DISTSTYLE ALL;
|
||||
|
|
|
@ -62,7 +62,7 @@ CREATE TABLE vocabulary (
|
|||
vocabulary_id VARCHAR(20) NOT NULL,
|
||||
vocabulary_name 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
|
||||
)
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue