-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.fhir_synthea.immunization`
(
  doseQuantity STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>,
  expirationDate STRING,
  explanation STRUCT<reason ARRAY<STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>, reasonNotGiven ARRAY<STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text 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,
  location STRUCT<locationId 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>,
  lotNumber STRING,
  manufacturer 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>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display 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>>,
  practitioner ARRAY<STRUCT<role STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, actor 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>>>,
  reaction ARRAY<STRUCT<date STRING, detail STRUCT<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>, reported BOOL>>,
  reportOrigin STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>,
  route STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>,
  site STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>,
  text STRUCT<status STRING, div STRING>,
  vaccinationProtocol ARRAY<STRUCT<doseSequence INT64, description STRING, authority 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>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>, series STRING, seriesDoses INT64, targetDisease ARRAY<STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>, doseStatus STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, doseStatusReason STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>>,
  shr_action_PerformedContext_extension STRUCT<shr_action_Status_extension STRUCT<value STRUCT<code STRING>>>,
  date STRING,
  encounter 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, 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>>,
  notGiven BOOL,
  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>,
  primarySource BOOL,
  status STRING,
  vaccineCode STRUCT<coding ARRAY<STRUCT<userSelected BOOL, version STRING, code STRING, display STRING, system STRING>>, text STRING>
);

INSERT INTO `bigquery-public-data.fhir_synthea.immunization` (doseQuantity, expirationDate, explanation, identifier, implicitRules, language, location, lotNumber, manufacturer, note, practitioner, reaction, reportOrigin, route, site, text, vaccinationProtocol, shr_action_PerformedContext_extension, date, encounter, id, meta, notGiven, patient, primarySource, status, vaccineCode) VALUES (NULL, NULL, NULL, '[]', NULL, NULL, NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, '[]', {'shr_action_Status_extension': {'value': {'code': 'completed'}}}, '2012-05-08T23:52:21+00:00', {'display': None, 'identifier': None, 'reference': None, 'encounterId': '090907dc-ba23-4752-a3a2-876cd394b93c'}, '85f37448-bb3d-4aa4-ad61-f4b9a8fc0630', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-immunization-ImmunizationGiven']"}, False, {'display': None, 'identifier': None, 'reference': None, 'patientId': '3738a283-cd09-43ed-a0fb-91b9a5874dff'}, True, 'completed', {'coding': "[{'userSelected': None, 'version': None, 'code': '10', 'display': 'IPV', 'system': 'http://hl7.org/fhir/sid/cvx'}]", 'text': 'IPV'}), (NULL, NULL, NULL, '[]', NULL, NULL, NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, '[]', {'shr_action_Status_extension': {'value': {'code': 'completed'}}}, '2019-01-20T15:05:51+00:00', {'display': None, 'identifier': None, 'reference': None, 'encounterId': 'be34e0f3-1ff9-44ba-9d31-008e0e96344b'}, '8602383b-4560-4d52-94e0-8445f4371ba1', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-immunization-ImmunizationGiven']"}, False, {'display': None, 'identifier': None, 'reference': None, 'patientId': 'b70a1d5f-437c-4ad1-a8fd-bb78e8fd97ba'}, True, 'completed', {'coding': "[{'userSelected': None, 'version': None, 'code': '10', 'display': 'IPV', 'system': 'http://hl7.org/fhir/sid/cvx'}]", 'text': 'IPV'}), (NULL, NULL, NULL, '[]', NULL, NULL, NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, '[]', {'shr_action_Status_extension': {'value': {'code': 'completed'}}}, '2011-10-20T06:24:30+00:00', {'display': None, 'identifier': None, 'reference': None, 'encounterId': 'b1adcb61-d6b7-4315-ad39-f2de9b37135c'}, '8ae49993-1b08-4194-bbe7-c7d788e4658f', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-immunization-ImmunizationGiven']"}, False, {'display': None, 'identifier': None, 'reference': None, 'patientId': 'f3a99ed5-691a-4a1c-82a9-7c9229aab828'}, True, 'completed', {'coding': "[{'userSelected': None, 'version': None, 'code': '10', 'display': 'IPV', 'system': 'http://hl7.org/fhir/sid/cvx'}]", 'text': 'IPV'}), (NULL, NULL, NULL, '[]', NULL, NULL, NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, '[]', {'shr_action_Status_extension': {'value': {'code': 'completed'}}}, '2014-11-18T03:51:43+00:00', {'display': None, 'identifier': None, 'reference': None, 'encounterId': '7e1a9214-d803-4ce4-9634-ecdc617999fe'}, '53ad4172-fd63-4fae-bf83-b8bf2a08be96', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-immunization-ImmunizationGiven']"}, False, {'display': None, 'identifier': None, 'reference': None, 'patientId': '7574c4de-5b50-491f-86aa-3a6faa0bafe2'}, True, 'completed', {'coding': "[{'userSelected': None, 'version': None, 'code': '10', 'display': 'IPV', 'system': 'http://hl7.org/fhir/sid/cvx'}]", 'text': 'IPV'}), (NULL, NULL, NULL, '[]', NULL, NULL, NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, '[]', {'shr_action_Status_extension': {'value': {'code': 'completed'}}}, '2013-08-22T21:50:19+00:00', {'display': None, 'identifier': None, 'reference': None, 'encounterId': '2bf2eb6d-7556-464b-819e-dd836e67717d'}, 'f73fef3c-3e2d-4dce-8d11-100a8c6fa50b', {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-immunization-ImmunizationGiven']"}, False, {'display': None, 'identifier': None, 'reference': None, 'patientId': '560f7ae3-013a-46ff-8837-c52da245d3cb'}, True, 'completed', {'coding': "[{'userSelected': None, 'version': None, 'code': '10', 'display': 'IPV', 'system': 'http://hl7.org/fhir/sid/cvx'}]", 'text': 'IPV'});