-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.fhir_synthea.imaging_study`
(
  accession 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, 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>>, display STRING>>, display STRING>>,
  availability STRING,
  basedOn ARRAY<STRUCT<referralRequestId STRING, carePlanId STRING, procedureRequestId 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>>,
  description STRING,
  endpoint ARRAY<STRUCT<endpointId 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,
  interpreter ARRAY<STRUCT<practitionerId 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>>,
  language STRING,
  meta STRUCT<versionId STRING, lastUpdated TIMESTAMP, profile ARRAY<STRING>, 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>>>,
  modalityList ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>,
  procedureCode ARRAY<STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>,
  procedureReference ARRAY<STRUCT<procedureId 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>>,
  reason STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>,
  referrer STRUCT<practitionerId 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>,
  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,
  numberOfInstances INT64,
  numberOfSeries INT64,
  patient STRUCT<display 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>,
  series ARRAY<STRUCT<description STRING, endpoint ARRAY<STRUCT<endpointId 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>>, laterality STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>, performer ARRAY<STRUCT<practitionerId 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>>, availability STRING, bodySite STRUCT<userSelected BOOL, version STRING, code STRING, display STRING, system STRING>, instance ARRAY<STRUCT<number INT64, sopClass STRING, title STRING, uid STRING>>, modality STRUCT<userSelected BOOL, version STRING, code STRING, display STRING, system STRING>, number INT64, numberOfInstances INT64, started STRING, uid STRING>>,
  started STRING,
  uid STRING
);

INSERT INTO `bigquery-public-data.fhir_synthea.imaging_study` (accession, availability, basedOn, description, endpoint, identifier, implicitRules, interpreter, language, meta, modalityList, procedureCode, procedureReference, reason, referrer, text, context, id, numberOfInstances, numberOfSeries, patient, series, started, uid) VALUES (NULL, NULL, '[]', NULL, '[]', '[]', NULL, '[]', NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': 'ddd96a20-8395-4d49-95ea-15bb120fad80'}, '36b84698-8eca-4f6b-9e85-4677a57d1da1', 1, 1, {'display': None, 'identifier': None, 'reference': None, 'patientId': '3b4b6608-72f1-40ce-a8e0-af747f7f65d7'}, '[{''description'': None, ''endpoint'': array([], dtype=object), ''laterality'': None, ''performer'': array([], dtype=object), ''availability'': ''UNAVAILABLE'', ''bodySite'': {''userSelected'': None, ''version'': None, ''code'': ''51185008'', ''display'': ''Thoracic structure (body structure)'', ''system'': ''http://snomed.info/sct''}, ''instance'': array([{''number'': 1, ''sopClass'': ''urn:oid:1.2.840.10008.5.1.4.1.1.2'', ''title'': ''CT Image Storage'', ''uid'': ''urn:oid:1.2.840.99999999.1.1.68557462.1569317994279''}],
       dtype=object), ''modality'': {''userSelected'': None, ''version'': None, ''code'': ''CT'', ''display'': ''Computed Tomography'', ''system'': ''http://dicom.nema.org/resources/ontology/DCM''}, ''number'': 1, ''numberOfInstances'': 1, ''started'': ''2005-03-25T06:12:16+00:00'', ''uid'': ''urn:oid:1.2.840.99999999.1.66725921.1569317994279''}                                                                                                                                                                     ]', '2005-03-25T06:12:16+00:00', 'urn:oid:1.2.840.99999999.71571246.1569317994267'), (NULL, NULL, '[]', NULL, '[]', '[]', NULL, '[]', NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': '0799f85c-bb69-47f7-9fbb-a309236d583a'}, '36db6259-b19b-4587-a5c1-6f46459c4b4b', 1, 1, {'display': None, 'identifier': None, 'reference': None, 'patientId': 'a9d9c72e-b347-4194-be27-7a6b166acad1'}, '[{''description'': None, ''endpoint'': array([], dtype=object), ''laterality'': None, ''performer'': array([], dtype=object), ''availability'': ''UNAVAILABLE'', ''bodySite'': {''userSelected'': None, ''version'': None, ''code'': ''51185008'', ''display'': ''Thoracic structure (body structure)'', ''system'': ''http://snomed.info/sct''}, ''instance'': array([{''number'': 1, ''sopClass'': ''urn:oid:1.2.840.10008.5.1.4.1.1.2'', ''title'': ''CT Image Storage'', ''uid'': ''urn:oid:1.2.840.99999999.1.1.44131466.1569313771319''}],
       dtype=object), ''modality'': {''userSelected'': None, ''version'': None, ''code'': ''CT'', ''display'': ''Computed Tomography'', ''system'': ''http://dicom.nema.org/resources/ontology/DCM''}, ''number'': 1, ''numberOfInstances'': 1, ''started'': ''2004-08-01T20:11:36+00:00'', ''uid'': ''urn:oid:1.2.840.99999999.1.94660906.1569313771319''}                                                                                                                                                                     ]', '2004-08-01T20:11:36+00:00', 'urn:oid:1.2.840.99999999.59043165.1569313771318'), (NULL, NULL, '[]', NULL, '[]', '[]', NULL, '[]', NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': '51768731-72af-4c7d-8d7a-198067512d92'}, '37a98a5e-c6f2-46e0-a31d-d1a0e4e2748a', 1, 1, {'display': None, 'identifier': None, 'reference': None, 'patientId': '42af113b-f9a8-4385-a806-85032fe9eb11'}, '[{''description'': None, ''endpoint'': array([], dtype=object), ''laterality'': None, ''performer'': array([], dtype=object), ''availability'': ''UNAVAILABLE'', ''bodySite'': {''userSelected'': None, ''version'': None, ''code'': ''51185008'', ''display'': ''Thoracic structure (body structure)'', ''system'': ''http://snomed.info/sct''}, ''instance'': array([{''number'': 1, ''sopClass'': ''urn:oid:1.2.840.10008.5.1.4.1.1.2'', ''title'': ''CT Image Storage'', ''uid'': ''urn:oid:1.2.840.99999999.1.1.37020619.1569308663019''}],
       dtype=object), ''modality'': {''userSelected'': None, ''version'': None, ''code'': ''CT'', ''display'': ''Computed Tomography'', ''system'': ''http://dicom.nema.org/resources/ontology/DCM''}, ''number'': 1, ''numberOfInstances'': 1, ''started'': ''1975-04-23T03:17:00+00:00'', ''uid'': ''urn:oid:1.2.840.99999999.1.25361066.1569308663019''}                                                                                                                                                                     ]', '1975-04-23T03:17:00+00:00', 'urn:oid:1.2.840.99999999.53505815.1569308663018'), (NULL, NULL, '[]', NULL, '[]', '[]', NULL, '[]', NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': 'b69bbed7-e3e6-478e-b7f6-f29a75d10fe2'}, '37f37758-b383-4958-96bd-b427c2d7b914', 1, 1, {'display': None, 'identifier': None, 'reference': None, 'patientId': '86405845-9216-4e52-ac51-b6d3a7bf427f'}, '[{''description'': None, ''endpoint'': array([], dtype=object), ''laterality'': None, ''performer'': array([], dtype=object), ''availability'': ''UNAVAILABLE'', ''bodySite'': {''userSelected'': None, ''version'': None, ''code'': ''51185008'', ''display'': ''Thoracic structure (body structure)'', ''system'': ''http://snomed.info/sct''}, ''instance'': array([{''number'': 1, ''sopClass'': ''urn:oid:1.2.840.10008.5.1.4.1.1.2'', ''title'': ''CT Image Storage'', ''uid'': ''urn:oid:1.2.840.99999999.1.1.78265332.1569372243539''}],
       dtype=object), ''modality'': {''userSelected'': None, ''version'': None, ''code'': ''CT'', ''display'': ''Computed Tomography'', ''system'': ''http://dicom.nema.org/resources/ontology/DCM''}, ''number'': 1, ''numberOfInstances'': 1, ''started'': ''2011-08-10T18:41:04+00:00'', ''uid'': ''urn:oid:1.2.840.99999999.1.89614123.1569372243539''}                                                                                                                                                                     ]', '2011-08-10T18:41:04+00:00', 'urn:oid:1.2.840.99999999.78015260.1569372243524'), (NULL, NULL, '[]', NULL, '[]', '[]', NULL, '[]', NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': '359927bb-3aaf-4407-892c-ab3a6ce94d9d'}, '37fb5967-ec34-4870-8adc-1918d57d0a1a', 1, 1, {'display': None, 'identifier': None, 'reference': None, 'patientId': 'dca5ea0e-f99f-4f23-854f-01f462d8ff01'}, '[{''description'': None, ''endpoint'': array([], dtype=object), ''laterality'': None, ''performer'': array([], dtype=object), ''availability'': ''UNAVAILABLE'', ''bodySite'': {''userSelected'': None, ''version'': None, ''code'': ''51185008'', ''display'': ''Thoracic structure (body structure)'', ''system'': ''http://snomed.info/sct''}, ''instance'': array([{''number'': 1, ''sopClass'': ''urn:oid:1.2.840.10008.5.1.4.1.1.2'', ''title'': ''CT Image Storage'', ''uid'': ''urn:oid:1.2.840.99999999.1.1.53447317.1569312365351''}],
       dtype=object), ''modality'': {''userSelected'': None, ''version'': None, ''code'': ''CT'', ''display'': ''Computed Tomography'', ''system'': ''http://dicom.nema.org/resources/ontology/DCM''}, ''number'': 1, ''numberOfInstances'': 1, ''started'': ''2002-10-25T02:34:28+00:00'', ''uid'': ''urn:oid:1.2.840.99999999.1.12893671.1569312365351''}                                                                                                                                                                     ]', '2002-10-25T02:34:28+00:00', 'urn:oid:1.2.840.99999999.75116523.1569312365336');