-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.fhir_synthea.goal`
(
  addresses ARRAY<STRUCT<conditionId STRING, observationId STRING, medicationStatementId STRING, nutritionOrderId STRING, procedureRequestId STRING, riskAssessmentId 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>>,
  category ARRAY<STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>,
  expressedBy STRUCT<patientId STRING, practitionerId 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>,
  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,
  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>>>,
  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>>,
  outcomeCode ARRAY<STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>,
  outcomeReference ARRAY<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>>,
  priority STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>,
  start STRUCT<date STRING, codeableConcept STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>,
  statusDate STRING,
  statusReason STRING,
  subject STRUCT<patientId STRING, groupId STRING, 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>,
  target STRUCT<measure STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, detail STRUCT<quantity STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>, `range` STRUCT<low STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>, high STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>>, codeableConcept STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>, due STRUCT<date STRING, duration STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>>>,
  text STRUCT<status STRING, div STRING>,
  description STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>,
  id STRING,
  status STRING
);

INSERT INTO `bigquery-public-data.fhir_synthea.goal` (addresses, category, expressedBy, identifier, implicitRules, language, meta, note, outcomeCode, outcomeReference, priority, start, statusDate, statusReason, subject, target, text, description, id, status) VALUES ('[]', '[]', NULL, '[]', NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, {'coding': '[]', 'text': 'improved systolic function'}, '4f8933e2-a39e-411d-9c20-91fd54e138bd', 'achieved'), ('[]', '[]', NULL, '[]', NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, {'coding': '[]', 'text': 'improved systolic function'}, '770bc7ef-2781-42d7-9aa3-27ad0e63887a', 'achieved'), ('[]', '[]', NULL, '[]', NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, {'coding': '[]', 'text': 'improved systolic function'}, 'd5c6ffd5-312a-4677-a0f8-1b079f142016', 'achieved'), ('[]', '[]', NULL, '[]', NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, {'coding': '[]', 'text': 'improved systolic function'}, 'fdb3ecb2-4ae3-4a1c-98df-a1f969d53127', 'achieved'), ('[]', '[]', NULL, '[]', NULL, NULL, NULL, '[]', '[]', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, {'coding': '[]', 'text': 'improved systolic function'}, '69731b44-3b7a-4296-a62b-dd4299e357b9', 'achieved');