Bigquery vocab version null and era datetimes

This commit is contained in:
clairblacketer 2018-10-02 09:17:30 -04:00
parent 0fe150e2ed
commit 9a0bd8665f
3 changed files with 27 additions and 27 deletions

View File

@ -43,7 +43,7 @@ create table vocabulary (
vocabulary_id STRING not null,
vocabulary_name STRING not null,
vocabulary_reference STRING not null,
vocabulary_version STRING not null,
vocabulary_version STRING null,
vocabulary_concept_id INT64 not null
)
;
@ -630,13 +630,13 @@ create table cost
--HINT DISTRIBUTE_ON_KEY(person_id)
create table drug_era
(
drug_era_id INT64 not null ,
person_id INT64 not null ,
drug_concept_id INT64 not null ,
drug_era_start_date date not null ,
drug_era_end_date date not null ,
drug_exposure_count INT64 null ,
gap_days INT64 null
drug_era_id INT64 not null ,
person_id INT64 not null ,
drug_concept_id INT64 not null ,
drug_era_start_datetime datetime not null ,
drug_era_end_datetime datetime not null ,
drug_exposure_count INT64 null ,
gap_days INT64 null
)
;
@ -644,13 +644,13 @@ create table drug_era
--HINT DISTRIBUTE_ON_KEY(person_id)
create table dose_era
(
dose_era_id INT64 not null ,
person_id INT64 not null ,
drug_concept_id INT64 not null ,
unit_concept_id INT64 not null ,
dose_value FLOAT64 not null ,
dose_era_start_date date not null ,
dose_era_end_date date not null
dose_era_id INT64 not null ,
person_id INT64 not null ,
drug_concept_id INT64 not null ,
unit_concept_id INT64 not null ,
dose_value FLOAT64 not null ,
dose_era_start_datetime datetime not null ,
dose_era_end_datetime datetime not null
)
;
@ -658,11 +658,11 @@ create table dose_era
--HINT DISTRIBUTE_ON_KEY(person_id)
create table condition_era
(
condition_era_id INT64 not null ,
person_id INT64 not null ,
condition_concept_id INT64 not null ,
condition_era_start_date date not null ,
condition_era_end_date date not null ,
condition_occurrence_count INT64 null
condition_era_id INT64 not null ,
person_id INT64 not null ,
condition_concept_id INT64 not null ,
condition_era_start_datetime datetime not null ,
condition_era_end_datetime datetime not null ,
condition_occurrence_count INT64 null
)
;

View File

@ -1 +1 @@
***OMOP Common Data Model v5.3.1 Specifications 14June2018***
***OMOP Common Data Model v6.0 Specifications 11October2018***

View File

@ -21,8 +21,6 @@
* [CONCEPT_ANCESTOR](https://github.com/OHDSI/CommonDataModel/wiki/CONCEPT_ANCESTOR)
* [SOURCE_TO_CONCEPT_MAP](https://github.com/OHDSI/CommonDataModel/wiki/SOURCE_TO_CONCEPT_MAP)
* [DRUG_STRENGTH](https://github.com/OHDSI/CommonDataModel/wiki/DRUG_STRENGTH)
* [COHORT_DEFINITION](https://github.com/OHDSI/CommonDataModel/wiki/COHORT_DEFINITION)
* [ATTRIBUTE_DEFINITION](https://github.com/OHDSI/CommonDataModel/wiki/ATTRIBUTE_DEFINITION)
**[Standardized Metadata](https://github.com/OHDSI/CommonDataModel/wiki/Standardized-Metadata)**
* [CDM_SOURCE](https://github.com/OHDSI/CommonDataModel/wiki/CDM_SOURCE)
@ -55,8 +53,10 @@
* [COST](https://github.com/OHDSI/CommonDataModel/wiki/COST)
**[Standardized Derived Elements](https://github.com/OHDSI/CommonDataModel/wiki/Standardized-Derived-Elements)**
* [COHORT](https://github.com/OHDSI/CommonDataModel/wiki/COHORT)
* [COHORT_ATTRIBUTE](https://github.com/OHDSI/CommonDataModel/wiki/COHORT_ATTRIBUTE)
* [DRUG_ERA](https://github.com/OHDSI/CommonDataModel/wiki/DRUG_ERA)
* [DOSE_ERA](https://github.com/OHDSI/CommonDataModel/wiki/DOSE_ERA)
* [CONDITION_ERA](https://github.com/OHDSI/CommonDataModel/wiki/CONDITION_ERA)
* [CONDITION_ERA](https://github.com/OHDSI/CommonDataModel/wiki/CONDITION_ERA)
**[Results Schema](https://github.com/OHDSI/CommonDataModel/wiki/Results-Schema)**
* [COHORT](https://github.com/OHDSI/CommonDataModel/wiki/COHORT)
* [COHORT_DEFINITION](https://github.com/OHDSI/CommonDataModel/wiki/COHORT_DEFINITION)