bigquery concept_ids not null
This commit is contained in:
parent
0ef09f6db1
commit
7b11ba434c
|
@ -184,11 +184,11 @@ create table person
|
||||||
care_site_id INT64 null,
|
care_site_id INT64 null,
|
||||||
person_source_value STRING null,
|
person_source_value STRING null,
|
||||||
gender_source_value STRING null,
|
gender_source_value STRING null,
|
||||||
gender_source_concept_id INT64 null,
|
gender_source_concept_id INT64 not null,
|
||||||
race_source_value STRING null,
|
race_source_value STRING null,
|
||||||
race_source_concept_id INT64 null,
|
race_source_concept_id INT64 not null,
|
||||||
ethnicity_source_value STRING null,
|
ethnicity_source_value STRING null,
|
||||||
ethnicity_source_concept_id INT64 null
|
ethnicity_source_concept_id INT64 not null
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -216,8 +216,8 @@ create table specimen
|
||||||
specimen_datetime DATETIME not null ,
|
specimen_datetime DATETIME not null ,
|
||||||
quantity FLOAT64 null ,
|
quantity FLOAT64 null ,
|
||||||
unit_concept_id INT64 null ,
|
unit_concept_id INT64 null ,
|
||||||
anatomic_site_concept_id INT64 null ,
|
anatomic_site_concept_id INT64 not null ,
|
||||||
disease_status_concept_id INT64 null ,
|
disease_status_concept_id INT64 not null ,
|
||||||
specimen_source_id STRING null ,
|
specimen_source_id STRING null ,
|
||||||
specimen_source_value STRING null ,
|
specimen_source_value STRING null ,
|
||||||
unit_source_value STRING null ,
|
unit_source_value STRING null ,
|
||||||
|
@ -241,11 +241,11 @@ create table visit_occurrence
|
||||||
provider_id INT64 null,
|
provider_id INT64 null,
|
||||||
care_site_id INT64 null,
|
care_site_id INT64 null,
|
||||||
visit_source_value STRING null,
|
visit_source_value STRING null,
|
||||||
visit_source_concept_id INT64 null ,
|
visit_source_concept_id INT64 not null ,
|
||||||
admitted_from_concept_id INT64 NULL , /*Changed from admitting_source_* */
|
admitted_from_concept_id INT64 not NULL , /*Changed from admitting_source_* */
|
||||||
admitted_from_source_value STRING NULL ,
|
admitted_from_source_value STRING NULL ,
|
||||||
discharge_to_source_value STRING null ,
|
discharge_to_source_value STRING null ,
|
||||||
discharge_to_concept_id INT64 null ,
|
discharge_to_concept_id INT64 not null ,
|
||||||
preceding_visit_occurrence_id INT64 null
|
preceding_visit_occurrence_id INT64 null
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
@ -264,11 +264,11 @@ create table visit_detail
|
||||||
visit_detail_type_concept_id INT64 not null ,
|
visit_detail_type_concept_id INT64 not null ,
|
||||||
provider_id INT64 null ,
|
provider_id INT64 null ,
|
||||||
care_site_id INT64 null ,
|
care_site_id INT64 null ,
|
||||||
discharge_to_concept_id INT64 null ,
|
discharge_to_concept_id INT64 not null ,
|
||||||
admitted_from_concept_id INT64 NULL , /*Changed from admitting_source_* */
|
admitted_from_concept_id INT64 not NULL , /*Changed from admitting_source_* */
|
||||||
admitted_from_source_value STRING NULL ,
|
admitted_from_source_value STRING NULL ,
|
||||||
visit_detail_source_value STRING null ,
|
visit_detail_source_value STRING null ,
|
||||||
visit_detail_source_concept_id INT64 null ,
|
visit_detail_source_concept_id INT64 not null ,
|
||||||
discharge_to_source_value STRING null ,
|
discharge_to_source_value STRING null ,
|
||||||
preceding_visit_detail_id INT64 null ,
|
preceding_visit_detail_id INT64 null ,
|
||||||
visit_detail_parent_id INT64 null ,
|
visit_detail_parent_id INT64 null ,
|
||||||
|
@ -286,13 +286,13 @@ create table procedure_occurrence
|
||||||
procedure_date date null ,
|
procedure_date date null ,
|
||||||
procedure_datetime DATETIME not null ,
|
procedure_datetime DATETIME not null ,
|
||||||
procedure_type_concept_id INT64 not null ,
|
procedure_type_concept_id INT64 not null ,
|
||||||
modifier_concept_id INT64 null ,
|
modifier_concept_id INT64 not null ,
|
||||||
quantity INT64 null ,
|
quantity INT64 null ,
|
||||||
provider_id INT64 null ,
|
provider_id INT64 null ,
|
||||||
visit_occurrence_id INT64 null ,
|
visit_occurrence_id INT64 null ,
|
||||||
visit_detail_id INT64 null ,
|
visit_detail_id INT64 null ,
|
||||||
procedure_source_value STRING null ,
|
procedure_source_value STRING null ,
|
||||||
procedure_source_concept_id INT64 null ,
|
procedure_source_concept_id INT64 not null ,
|
||||||
modifier_source_value STRING null
|
modifier_source_value STRING null
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
@ -315,13 +315,13 @@ create table drug_exposure
|
||||||
quantity FLOAT64 null ,
|
quantity FLOAT64 null ,
|
||||||
days_supply INT64 null ,
|
days_supply INT64 null ,
|
||||||
sig STRING null ,
|
sig STRING null ,
|
||||||
route_concept_id INT64 null ,
|
route_concept_id INT64 not null ,
|
||||||
lot_number STRING null ,
|
lot_number STRING null ,
|
||||||
provider_id INT64 null ,
|
provider_id INT64 null ,
|
||||||
visit_occurrence_id INT64 null ,
|
visit_occurrence_id INT64 null ,
|
||||||
visit_detail_id INT64 null ,
|
visit_detail_id INT64 null ,
|
||||||
drug_source_value STRING null ,
|
drug_source_value STRING null ,
|
||||||
drug_source_concept_id INT64 null ,
|
drug_source_concept_id INT64 not null ,
|
||||||
route_source_value STRING null ,
|
route_source_value STRING null ,
|
||||||
dose_unit_source_value STRING null
|
dose_unit_source_value STRING null
|
||||||
)
|
)
|
||||||
|
@ -345,7 +345,7 @@ create table device_exposure
|
||||||
visit_occurrence_id INT64 null ,
|
visit_occurrence_id INT64 null ,
|
||||||
visit_detail_id INT64 null ,
|
visit_detail_id INT64 null ,
|
||||||
device_source_value STRING null ,
|
device_source_value STRING null ,
|
||||||
device_source_concept_id INT64 null
|
device_source_concept_id INT64 not null
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -361,13 +361,13 @@ create table condition_occurrence
|
||||||
condition_end_date date null ,
|
condition_end_date date null ,
|
||||||
condition_end_datetime DATETIME null ,
|
condition_end_datetime DATETIME null ,
|
||||||
condition_type_concept_id INT64 not null ,
|
condition_type_concept_id INT64 not null ,
|
||||||
condition_status_concept_id INT64 null ,
|
condition_status_concept_id INT64 not null ,
|
||||||
stop_reason STRING null ,
|
stop_reason STRING null ,
|
||||||
provider_id INT64 null ,
|
provider_id INT64 null ,
|
||||||
visit_occurrence_id INT64 null ,
|
visit_occurrence_id INT64 null ,
|
||||||
visit_detail_id INT64 null ,
|
visit_detail_id INT64 null ,
|
||||||
condition_source_value STRING null ,
|
condition_source_value STRING null ,
|
||||||
condition_source_concept_id INT64 null ,
|
condition_source_concept_id INT64 not null ,
|
||||||
condition_status_source_value STRING null
|
condition_status_source_value STRING null
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
@ -393,7 +393,7 @@ create table measurement
|
||||||
visit_occurrence_id INT64 null ,
|
visit_occurrence_id INT64 null ,
|
||||||
visit_detail_id INT64 null ,
|
visit_detail_id INT64 null ,
|
||||||
measurement_source_value STRING null ,
|
measurement_source_value STRING null ,
|
||||||
measurement_source_concept_id INT64 null ,
|
measurement_source_concept_id INT64 not null ,
|
||||||
unit_source_value STRING null ,
|
unit_source_value STRING null ,
|
||||||
value_source_value STRING null
|
value_source_value STRING null
|
||||||
)
|
)
|
||||||
|
@ -406,7 +406,7 @@ create table note
|
||||||
note_id INT64 not null ,
|
note_id INT64 not null ,
|
||||||
person_id INT64 not null ,
|
person_id INT64 not null ,
|
||||||
note_event_id INT64 null ,
|
note_event_id INT64 null ,
|
||||||
note_event_field_concept_id INT64 NULL ,
|
note_event_field_concept_id INT64 not NULL ,
|
||||||
note_date date null ,
|
note_date date null ,
|
||||||
note_datetime DATETIME not null ,
|
note_datetime DATETIME not null ,
|
||||||
note_type_concept_id INT64 not null ,
|
note_type_concept_id INT64 not null ,
|
||||||
|
@ -428,18 +428,18 @@ create table note_nlp
|
||||||
(
|
(
|
||||||
note_nlp_id INT64 not null ,
|
note_nlp_id INT64 not null ,
|
||||||
note_id INT64 not null ,
|
note_id INT64 not null ,
|
||||||
section_concept_id INT64 null ,
|
section_concept_id INT64 not null ,
|
||||||
snippet STRING null ,
|
snippet STRING null ,
|
||||||
"offset" STRING null ,
|
"offset" STRING null ,
|
||||||
lexical_variant STRING not null ,
|
lexical_variant STRING not null ,
|
||||||
note_nlp_concept_id INT64 null ,
|
note_nlp_concept_id INT64 not null ,
|
||||||
nlp_system STRING null ,
|
nlp_system STRING null ,
|
||||||
nlp_date date not null ,
|
nlp_date date not null ,
|
||||||
nlp_datetime DATETIME null ,
|
nlp_datetime DATETIME null ,
|
||||||
term_exists STRING null ,
|
term_exists STRING null ,
|
||||||
term_temporal STRING null ,
|
term_temporal STRING null ,
|
||||||
term_modifiers STRING null ,
|
term_modifiers STRING null ,
|
||||||
note_nlp_source_concept_id INT64 null
|
note_nlp_source_concept_id INT64 not null
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -462,11 +462,11 @@ create table observation
|
||||||
visit_occurrence_id INT64 null ,
|
visit_occurrence_id INT64 null ,
|
||||||
visit_detail_id INT64 null ,
|
visit_detail_id INT64 null ,
|
||||||
observation_source_value STRING null ,
|
observation_source_value STRING null ,
|
||||||
observation_source_concept_id INT64 null ,
|
observation_source_concept_id INT64 not null ,
|
||||||
unit_source_value STRING null ,
|
unit_source_value STRING null ,
|
||||||
qualifier_source_value STRING null ,
|
qualifier_source_value STRING null ,
|
||||||
observation_event_id INT64 null ,
|
observation_event_id INT64 null ,
|
||||||
obs_event_field_concept_id INT64 NULL ,
|
obs_event_field_concept_id INT64 not NULL ,
|
||||||
value_as_datetime DATETIME null
|
value_as_datetime DATETIME null
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
@ -482,18 +482,18 @@ create table survey_conduct
|
||||||
survey_end_date date null ,
|
survey_end_date date null ,
|
||||||
survey_end_datetime DATETIME not null ,
|
survey_end_datetime DATETIME not null ,
|
||||||
provider_id INT64 null ,
|
provider_id INT64 null ,
|
||||||
assisted_concept_id INT64 null ,
|
assisted_concept_id INT64 not null ,
|
||||||
respondent_type_concept_id INT64 null ,
|
respondent_type_concept_id INT64 not null ,
|
||||||
timing_concept_id INT64 null ,
|
timing_concept_id INT64 not null ,
|
||||||
collection_method_concept_id INT64 null ,
|
collection_method_concept_id INT64 not null ,
|
||||||
assisted_source_value STRING null ,
|
assisted_source_value STRING null ,
|
||||||
respondent_type_source_value STRING null ,
|
respondent_type_source_value STRING null ,
|
||||||
timing_source_value STRING null ,
|
timing_source_value STRING null ,
|
||||||
collection_method_source_value STRING null ,
|
collection_method_source_value STRING null ,
|
||||||
survey_source_value STRING null ,
|
survey_source_value STRING null ,
|
||||||
survey_source_concept_id INT64 null ,
|
survey_source_concept_id INT64 not null ,
|
||||||
survey_source_identifier STRING null ,
|
survey_source_identifier STRING null ,
|
||||||
validated_survey_concept_id INT64 null ,
|
validated_survey_concept_id INT64 not null ,
|
||||||
validated_survey_source_value STRING null ,
|
validated_survey_source_value STRING null ,
|
||||||
survey_version_number STRING null ,
|
survey_version_number STRING null ,
|
||||||
visit_occurrence_id INT64 null ,
|
visit_occurrence_id INT64 null ,
|
||||||
|
@ -535,7 +535,7 @@ create table location_history
|
||||||
(
|
(
|
||||||
location_history_id INT64 not null ,
|
location_history_id INT64 not null ,
|
||||||
location_id INT64 not null ,
|
location_id INT64 not null ,
|
||||||
relationship_type_concept_id INT64 null , --Recent addition based on github discussion
|
relationship_type_concept_id INT64 not null , --Recent addition based on github discussion
|
||||||
domain_id STRING not null ,
|
domain_id STRING not null ,
|
||||||
entity_id INT64 not null ,
|
entity_id INT64 not null ,
|
||||||
start_date date not null ,
|
start_date date not null ,
|
||||||
|
@ -562,15 +562,15 @@ create table provider
|
||||||
provider_name STRING null ,
|
provider_name STRING null ,
|
||||||
npi STRING null ,
|
npi STRING null ,
|
||||||
dea STRING null ,
|
dea STRING null ,
|
||||||
specialty_concept_id INT64 null ,
|
specialty_concept_id INT64 not null ,
|
||||||
care_site_id INT64 null ,
|
care_site_id INT64 null ,
|
||||||
year_of_birth INT64 null ,
|
year_of_birth INT64 null ,
|
||||||
gender_concept_id INT64 null ,
|
gender_concept_id INT64 not null ,
|
||||||
provider_source_value STRING null ,
|
provider_source_value STRING null ,
|
||||||
specialty_source_value STRING null ,
|
specialty_source_value STRING null ,
|
||||||
specialty_source_concept_id INT64 null ,
|
specialty_source_concept_id INT64 not null ,
|
||||||
gender_source_value STRING null ,
|
gender_source_value STRING null ,
|
||||||
gender_source_concept_id INT64 null
|
gender_source_concept_id INT64 not null
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -583,22 +583,22 @@ create table payer_plan_period
|
||||||
contract_person_id INT64 null ,
|
contract_person_id INT64 null ,
|
||||||
payer_plan_period_start_date date not null ,
|
payer_plan_period_start_date date not null ,
|
||||||
payer_plan_period_end_date date not null ,
|
payer_plan_period_end_date date not null ,
|
||||||
payer_concept_id INT64 null ,
|
payer_concept_id INT64 not null ,
|
||||||
plan_concept_id INT64 null ,
|
plan_concept_id INT64 not null ,
|
||||||
contract_concept_id INT64 null ,
|
contract_concept_id INT64 not null ,
|
||||||
sponsor_concept_id INT64 null ,
|
sponsor_concept_id INT64 not null ,
|
||||||
stop_reason_concept_id INT64 null ,
|
stop_reason_concept_id INT64 not null ,
|
||||||
payer_source_value STRING null ,
|
payer_source_value STRING null ,
|
||||||
payer_source_concept_id INT64 null ,
|
payer_source_concept_id INT64 not null ,
|
||||||
plan_source_value STRING null ,
|
plan_source_value STRING null ,
|
||||||
plan_source_concept_id INT64 null ,
|
plan_source_concept_id INT64 not null ,
|
||||||
contract_source_value STRING null ,
|
contract_source_value STRING null ,
|
||||||
contract_source_concept_id INT64 null ,
|
contract_source_concept_id INT64 not null ,
|
||||||
sponsor_source_value STRING null ,
|
sponsor_source_value STRING null ,
|
||||||
sponsor_source_concept_id INT64 null ,
|
sponsor_source_concept_id INT64 not null ,
|
||||||
family_source_value STRING null ,
|
family_source_value STRING null ,
|
||||||
stop_reason_source_value STRING null ,
|
stop_reason_source_value STRING null ,
|
||||||
stop_reason_source_concept_id INT64 null
|
stop_reason_source_concept_id INT64 not null
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -611,15 +611,15 @@ create table cost
|
||||||
cost_event_field_concept_id INT64 NOT NULL ,
|
cost_event_field_concept_id INT64 NOT NULL ,
|
||||||
cost_concept_id INT64 not null ,
|
cost_concept_id INT64 not null ,
|
||||||
cost_type_concept_id INT64 not null ,
|
cost_type_concept_id INT64 not null ,
|
||||||
currency_concept_id INT64 null ,
|
currency_concept_id INT64 not null ,
|
||||||
cost FLOAT64 null ,
|
cost FLOAT64 null ,
|
||||||
incurred_date date not null ,
|
incurred_date date not null ,
|
||||||
billed_date date null ,
|
billed_date date null ,
|
||||||
paid_date date null ,
|
paid_date date null ,
|
||||||
revenue_code_concept_id INT64 null ,
|
revenue_code_concept_id INT64 not null ,
|
||||||
drg_concept_id INT64 null ,
|
drg_concept_id INT64 not null ,
|
||||||
cost_source_value STRING null ,
|
cost_source_value STRING null ,
|
||||||
cost_source_concept_id INT64 null ,
|
cost_source_concept_id INT64 not null ,
|
||||||
revenue_code_source_value STRING null ,
|
revenue_code_source_value STRING null ,
|
||||||
drg_source_value STRING null ,
|
drg_source_value STRING null ,
|
||||||
payer_plan_period_id INT64 null
|
payer_plan_period_id INT64 null
|
||||||
|
|
Loading…
Reference in New Issue