-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.fhir_synthea.condition`
(
  asserter STRUCT<practitionerId STRING, patientId STRING, relatedPersonId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>,
  bodySite ARRAY<STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>,
  evidence ARRAY<STRUCT<code ARRAY<STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>, detail ARRAY<STRUCT<resourceId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>>>>,
  identifier ARRAY<STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>>,
  implicitRules STRING,
  language STRING,
  note ARRAY<STRUCT<author STRUCT<reference STRUCT<practitionerId STRING, patientId STRING, relatedPersonId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>, string STRING>, time STRING, text STRING>>,
  severity STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>,
  stage STRUCT<summary STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, assessment ARRAY<STRUCT<clinicalImpressionId STRING, diagnosticReportId STRING, observationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>>>,
  text STRUCT<status STRING, div STRING>,
  abatement STRUCT<age STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>, boolean BOOL, period STRUCT<start STRING, `end` STRING>, `range` STRUCT<low STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>, high STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>>, string STRING, dateTime STRING>,
  assertedDate STRING,
  category ARRAY<STRUCT<text STRING, coding ARRAY<STRUCT<userSelected BOOL, version STRING, code STRING, display STRING, system STRING>>>>,
  clinicalStatus STRING,
  code STRUCT<coding ARRAY<STRUCT<userSelected BOOL, version STRING, code STRING, display STRING, system STRING>>, text STRING>,
  context STRUCT<display STRING, episodeOfCareId STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, reference STRING, encounterId STRING>,
  id STRING,
  meta STRUCT<lastUpdated TIMESTAMP, security ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, tag ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, versionId STRING, profile ARRAY<STRING>>,
  onset STRUCT<age STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>, period STRUCT<start STRING, `end` STRING>, `range` STRUCT<low STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>, high STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>>, string STRING, dateTime STRING>,
  subject STRUCT<display STRING, groupId STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, reference STRING, patientId STRING>,
  verificationStatus STRING
);

INSERT INTO `bigquery-public-data.fhir_synthea.condition` (asserter, bodySite, evidence, identifier, implicitRules, language, note, severity, stage, text, abatement, assertedDate, category, clinicalStatus, code, context, id, meta, onset, subject, verificationStatus) VALUES (NULL, '[]', '[]', '[]', NULL, NULL, '[]', NULL, NULL, NULL, NULL, '1964-03-06T18:57:59+00:00', '[{''text'': None, ''coding'': array([{''userSelected'': None, ''version'': None, ''code'': ''disease'', ''display'': ''Disease'', ''system'': ''http://standardhealthrecord.org/shr/condition/vs/ConditionCategoryVS''}],
       dtype=object)}                                                                                                                                                                                ]', 'active', {'coding': "[{'userSelected': None, 'version': None, 'code': '1734006', 'display': 'Fracture of the vertebral column with spinal cord injury', 'system': 'http://snomed.info/sct'}]", 'text': 'Fracture of the vertebral column with spinal cord injury'}, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': '1886ab32-897f-4a4d-b1d2-870a8479ce00'}, 'e12c3413-12d2-415f-b8f9-9c7057b2f527', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-condition-Condition']"}, {'age': None, 'period': None, 'range': None, 'string': None, 'dateTime': '1964-03-06T18:57:59+00:00'}, {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': 'efef0f5c-6c03-4913-ad85-8f7e3cd88936'}, 'confirmed'), (NULL, '[]', '[]', '[]', NULL, NULL, '[]', NULL, NULL, NULL, NULL, '1960-07-16T16:22:12+00:00', '[{''text'': None, ''coding'': array([{''userSelected'': None, ''version'': None, ''code'': ''disease'', ''display'': ''Disease'', ''system'': ''http://standardhealthrecord.org/shr/condition/vs/ConditionCategoryVS''}],
       dtype=object)}                                                                                                                                                                                ]', 'active', {'coding': "[{'userSelected': None, 'version': None, 'code': '1734006', 'display': 'Fracture of the vertebral column with spinal cord injury', 'system': 'http://snomed.info/sct'}]", 'text': 'Fracture of the vertebral column with spinal cord injury'}, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': 'c1429780-edbc-41c0-8a43-d5506e4d3607'}, '47156849-8ab4-4e12-853c-292df2f6ea9c', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-condition-Condition']"}, {'age': None, 'period': None, 'range': None, 'string': None, 'dateTime': '1960-07-16T16:22:12+00:00'}, {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': '1d08fbf8-5d89-462a-8e80-9bddcb8d2242'}, 'confirmed'), (NULL, '[]', '[]', '[]', NULL, NULL, '[]', NULL, NULL, NULL, NULL, '2006-12-18T11:30:48+00:00', '[{''text'': None, ''coding'': array([{''userSelected'': None, ''version'': None, ''code'': ''disease'', ''display'': ''Disease'', ''system'': ''http://standardhealthrecord.org/shr/condition/vs/ConditionCategoryVS''}],
       dtype=object)}                                                                                                                                                                                ]', 'active', {'coding': "[{'userSelected': None, 'version': None, 'code': '1734006', 'display': 'Fracture of the vertebral column with spinal cord injury', 'system': 'http://snomed.info/sct'}]", 'text': 'Fracture of the vertebral column with spinal cord injury'}, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': '97dcd469-3d32-4c85-8104-86f0af6b0722'}, 'f75ddd61-01ec-493f-9cde-04830850b06c', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-condition-Condition']"}, {'age': None, 'period': None, 'range': None, 'string': None, 'dateTime': '2006-12-18T11:30:48+00:00'}, {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': '2bbf7099-13ea-43af-a3d2-04b9239d8e50'}, 'confirmed'), (NULL, '[]', '[]', '[]', NULL, NULL, '[]', NULL, NULL, NULL, NULL, '2011-03-04T06:13:24+00:00', '[{''text'': None, ''coding'': array([{''userSelected'': None, ''version'': None, ''code'': ''disease'', ''display'': ''Disease'', ''system'': ''http://standardhealthrecord.org/shr/condition/vs/ConditionCategoryVS''}],
       dtype=object)}                                                                                                                                                                                ]', 'active', {'coding': "[{'userSelected': None, 'version': None, 'code': '1734006', 'display': 'Fracture of the vertebral column with spinal cord injury', 'system': 'http://snomed.info/sct'}]", 'text': 'Fracture of the vertebral column with spinal cord injury'}, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': '2184eb3c-9426-44db-b67e-1264a441d171'}, '5113e95a-cffa-45a8-adfc-6bc2d93bc62e', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-condition-Condition']"}, {'age': None, 'period': None, 'range': None, 'string': None, 'dateTime': '2011-03-04T06:13:24+00:00'}, {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': '8829cf49-22a7-4bf4-bba7-626b67053ef6'}, 'confirmed'), (NULL, '[]', '[]', '[]', NULL, NULL, '[]', NULL, NULL, NULL, NULL, '2009-01-29T11:09:09+00:00', '[{''text'': None, ''coding'': array([{''userSelected'': None, ''version'': None, ''code'': ''disease'', ''display'': ''Disease'', ''system'': ''http://standardhealthrecord.org/shr/condition/vs/ConditionCategoryVS''}],
       dtype=object)}                                                                                                                                                                                ]', 'active', {'coding': "[{'userSelected': None, 'version': None, 'code': '1734006', 'display': 'Fracture of the vertebral column with spinal cord injury', 'system': 'http://snomed.info/sct'}]", 'text': 'Fracture of the vertebral column with spinal cord injury'}, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': 'e42f528d-7a06-416f-b1b6-9461d3e7bcc6'}, 'e94f3ba6-daca-46ea-8da0-ed93eba46f29', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-condition-Condition']"}, {'age': None, 'period': None, 'range': None, 'string': None, 'dateTime': '2009-01-29T11:09:09+00:00'}, {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': '51112b16-7fd8-4143-9cdf-ed12bbaae881'}, 'confirmed');