From 61bae0aa038302d89b66a5b4c7c0b9e23c671f57 Mon Sep 17 00:00:00 2001 From: Mark Velez Date: Fri, 30 Jun 2017 20:48:08 -0400 Subject: [PATCH] Set datetime fields to nullable rather than required * As defined by OMOP spec (see https://github.com/OHDSI/CommonDataModel) * Datetimes in observation_period will likely be removed (see https://github.com/OHDSI/CommonDataModel/pull/64) --- tools/bq/schemas/condition_occurrence.json | 2 +- tools/bq/schemas/device_exposure.json | 2 +- tools/bq/schemas/drug_exposure.json | 2 +- tools/bq/schemas/observation_period.json | 4 ++-- tools/bq/schemas/procedure_occurrence.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/bq/schemas/condition_occurrence.json b/tools/bq/schemas/condition_occurrence.json index e31cdc3599..f4b50d05bb 100644 --- a/tools/bq/schemas/condition_occurrence.json +++ b/tools/bq/schemas/condition_occurrence.json @@ -22,7 +22,7 @@ { "type": "timestamp", "name": "condition_start_datetime", - "mode": "required" + "mode": "nullable" }, { "type": "date", diff --git a/tools/bq/schemas/device_exposure.json b/tools/bq/schemas/device_exposure.json index 45b6408fd8..e0d91f59dd 100644 --- a/tools/bq/schemas/device_exposure.json +++ b/tools/bq/schemas/device_exposure.json @@ -22,7 +22,7 @@ { "type": "timestamp", "name": "device_exposure_start_datetime", - "mode": "required" + "mode": "nullable" }, { "type": "date", diff --git a/tools/bq/schemas/drug_exposure.json b/tools/bq/schemas/drug_exposure.json index 3e054fe699..5d6ca3ab09 100644 --- a/tools/bq/schemas/drug_exposure.json +++ b/tools/bq/schemas/drug_exposure.json @@ -22,7 +22,7 @@ { "type": "timestamp", "name": "drug_exposure_start_datetime", - "mode": "required" + "mode": "nullable" }, { "type": "date", diff --git a/tools/bq/schemas/observation_period.json b/tools/bq/schemas/observation_period.json index 9797efc55f..e190e522d8 100644 --- a/tools/bq/schemas/observation_period.json +++ b/tools/bq/schemas/observation_period.json @@ -17,7 +17,7 @@ { "type": "timestamp", "name": "observation_period_start_datetime", - "mode": "required" + "mode": "nullable" }, { "type": "date", @@ -27,7 +27,7 @@ { "type": "timestamp", "name": "observation_period_end_datetime", - "mode": "required" + "mode": "nullable" }, { "type": "integer", diff --git a/tools/bq/schemas/procedure_occurrence.json b/tools/bq/schemas/procedure_occurrence.json index f4a288d45c..e56bdff13b 100644 --- a/tools/bq/schemas/procedure_occurrence.json +++ b/tools/bq/schemas/procedure_occurrence.json @@ -22,7 +22,7 @@ { "type": "timestamp", "name": "procedure_datetime", - "mode": "required" + "mode": "nullable" }, { "type": "integer",