-- DBMS: bigquery
CREATE TABLE `isb-cgc.TCGA_bioclin_v0.Annotations`
(
  project_short_name STRING OPTIONS(description="Project name abbreviation; the program name appended with a project name abbreviation; e.g. TCGA-OV, etc."),
  entity_barcode STRING OPTIONS(description="Barcode of the entity that this annotation applies to; often the same as the case barcode"),
  entity_type STRING OPTIONS(description="Type of the entity that this annotation applies to; e.g. Shipped Portion, Aliquot, Patient (which has the same meaning as Case), Analyte, etc."),
  category STRING OPTIONS(description="Annotation category; one of a relatively short list of phrases from a controlled-vocabulary; e.g. Item is noncanonical, Item flagged DNU, Prior malignancy, etc."),
  classification STRING OPTIONS(description="Annotation classification; e.g. Notification, CenterNotification, Observation, or Redaction"),
  notes STRING OPTIONS(description="Longer descriptive text about this annotation"),
  date_created STRING OPTIONS(description="Date on which this annotation was originally created; includes time-stamp and time-zone, eg 2011-03-14T18:00:42-04:00  --  dates range between March 2009 and June 2016"),
  date_edited STRING OPTIONS(description="Annotations were rarely edited, but if thery were (fewer than 10 out of over 6000 total annotations), this field indicates the date on which it was edited"),
  case_gdc_id STRING OPTIONS(description="GDC case identifier for the patient/case associated with this specific annotation"),
  case_barcode STRING OPTIONS(description="TCGA patient/case barcode; e.g. TCGA-06-0119"),
  sample_barcode STRING OPTIONS(description="TCGA sample barcode; e.g. TCGA-06-0119-01A (note that this field will be null if the annotation applies at a higher level than sample)"),
  aliquot_barcode STRING OPTIONS(description="TCGA aliquot barcode; e.g. TCGA-06-0119-01A-08D-0216-06 (note that this field will be null if the annotation applies at a higher level than aliquot)")
)
OPTIONS(
  friendly_name="TCGA BIOCLINICAL ANNOTATIONS 2017 DEPRECATED",
  description="This data was generated from Annotations obtained from the TCGA DCC in June 2016. This annotation data for TCGA patient cases includes the GDC case identifier. It may have slight differences from the annotations available at the GDC. This table has been deprecated. It has been copied to isb-cgc-bq.TCGA_versioned.annotations_gdc_2017_04. Please see isb-cgc-bq.TCGA.annotations_gdc_current for the most current table.",
  labels=[("data_type", "clinical_supplement"), ("category", "clinical_biospecimen_data"), ("access", "open"), ("status", "deprecated"), ("program", "tcga"), ("source", "gdc")]
);

INSERT INTO `isb-cgc.TCGA_bioclin_v0.Annotations` (project_short_name, entity_barcode, entity_type, category, classification, notes, date_created, date_edited, case_gdc_id, case_barcode, sample_barcode, aliquot_barcode) VALUES ('TCGA-ACC', 'TCGA-OR-A5JH', 'Patient', 'Item is noncanonical', 'Notification', 'Extension set. Only DNA from tumor  and normal shipped.', '2014-07-16T16:26:25-04:00', NULL, '4f845fea-e823-47d6-89fb-36ee478a43b8', 'TCGA-OR-A5JH', NULL, NULL), ('TCGA-ACC', 'TCGA-OR-A5JU', 'Patient', 'Item is noncanonical', 'Notification', 'Extension set. Only DNA from tumor  and normal shipped.', '2014-07-16T16:26:08-04:00', NULL, 'cac8eaba-9e40-4048-b8cc-87574f048d91', 'TCGA-OR-A5JU', NULL, NULL), ('TCGA-ACC', 'TCGA-OR-A5KB', 'Patient', 'Item is noncanonical', 'Notification', 'Extension set. Only DNA from tumor  and normal shipped.', '2014-07-16T16:26:20-04:00', NULL, '09454ed6-64bc-4a35-af44-7c4344623d45', 'TCGA-OR-A5KB', NULL, NULL), ('TCGA-ACC', 'TCGA-OR-A5KP', 'Patient', 'Item is noncanonical', 'Notification', 'Extension set. Only DNA from tumor  and normal shipped.', '2014-07-16T16:26:32-04:00', NULL, '653f1d34-73e9-4216-b40b-e25c1cfc7943', 'TCGA-OR-A5KP', NULL, NULL), ('TCGA-ACC', 'TCGA-OR-A5KQ', 'Patient', 'Item is noncanonical', 'Notification', 'Extension set. Only DNA from tumor  and normal shipped.', '2014-07-16T16:26:36-04:00', NULL, 'a3383252-1161-4b65-8bac-125a6eda3d08', 'TCGA-OR-A5KQ', NULL, NULL);