-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.CPTAC.clinical_diagnoses_proteogenomic_translational_research_centers_pdc_current`
(
  case_id STRING OPTIONS(description="Unique identifier associated with a specific patient (e.g. 24cb0fcb-63d6-11e8-bcf1-0a2705229b82)"),
  case_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter that is associated with a specific patient (e.g. 05BR016)"),
  project_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter that is associated with a specific project (e.g. CPTAC3-Discovery)"),
  diagnosis_id STRING OPTIONS(description="Unique identifier for data from the investigation, analysis and recognition of the presence and nature of disease, condition, or injury from expressed signs and symptoms; also, the scientific determination of any kind; the concise results of such an investigation (e.g. e8dd475b-693a-11ea-b1fd-0aad30af8a83)"),
  diagnosis_submitter_id STRING OPTIONS(description="Unique identifier deriving from data submitter attributed to data from the investigation, analysis and recognition of the presence and nature of disease, condition, or injury from expressed signs and symptoms; also, the scientific determination of any kind; the concise results of such an investigation (e.g. 33-DX)"),
  primary_diagnosis STRING OPTIONS(description="Text term used to describe the patient's histologic diagnosis, as described by the World Health Organization's (WHO) International Classification of Diseases for Oncology (ICD-O)"),
  age_at_diagnosis INT64 OPTIONS(description="Age at the time of diagnosis expressed in number of days since birth"),
  days_to_last_follow_up FLOAT64 OPTIONS(description="Time interval from the date of last follow up to the date of initial pathologic diagnosis, represented as a calculated number of days"),
  days_to_last_known_disease_status FLOAT64 OPTIONS(description="Time interval from the date of last follow up to the date of initial pathologic diagnosis, represented as a calculated number of days"),
  days_to_recurrence FLOAT64 OPTIONS(description="Number of days between the date used for index and the date the patient's disease recurred"),
  classification_of_tumor STRING OPTIONS(description="Text that describes the kind of disease present in the tumor specimen as related to a specific timepoint"),
  last_known_disease_status STRING OPTIONS(description="Text term that describes the last known state or condition of an individual's neoplasm"),
  morphology STRING OPTIONS(description="The third edition of the International Classification of Diseases for Oncology, published in 2000 used principally in tumor and cancer registries for coding the site (topography) and the histology (morphology) of neoplasms. The study of the structure of the cells and their arrangement to constitute tissues and, finally, the association among these to form organs. In pathology, the microscopic process of identifying normal and abnormal morphologic characteristics in tissues, by employing various cytochemical and immunocytochemical stains. A system of numbered categories for representation of data"),
  progression_or_recurrence BOOL OPTIONS(description="Yes/No/Unknown indicator to identify whether a patient has had a new tumor event after initial treatment"),
  site_of_resection_or_biopsy STRING OPTIONS(description="The text term used to describe the anatomic site of origin, of the patient's malignant disease, as described by the World Health Organization's (WHO) International Classification of Diseases for Oncology (ICD-O)"),
  tissue_or_organ_of_origin STRING OPTIONS(description="The text term used to describe the anatomic site of origin, of the patient's malignant disease, as described by the World Health Organization's (WHO) International Classification of Diseases for Oncology (ICD-O)"),
  tumor_grade STRING OPTIONS(description="Numeric value to express the degree of abnormality of cancer cells, a measure of differentiation and aggressiveness"),
  tumor_stage STRING OPTIONS(description="The extent of a cancer in the body. Staging is usually based on the size of the tumor, whether lymph nodes contain cancer, and whether the cancer has spread from the original site to other parts of the body. The accepted values for tumor_stage depend on the tumor site, type, and accepted staging system. These items should accompany the tumor_stage value as associated metadata")
)
OPTIONS(
  friendly_name="PROTEOGENOMIC TRANSLATIONAL RESEARCH CENTERS (PTRC) CLINICAL DIAGNOSES DATA",
  description="Data for the Proteogenomic Translational Research Centers (PTRC) project was extracted using PDC API V3.4 in August 2023. This table contains information about patient cases and their clinical information. More details: see https://pdc.cancer.gov/data-dictionary/dictionary.html",
  labels=[("access", "open"), ("data_type", "clinical_data"), ("source", "pdc"), ("program", "cptac3"), ("category", "clinical_biospecimen_data"), ("status", "current"), ("version", "v3_4")]
);

INSERT INTO `isb-cgc-bq.CPTAC.clinical_diagnoses_proteogenomic_translational_research_centers_pdc_current` (case_id, case_submitter_id, project_submitter_id, diagnosis_id, diagnosis_submitter_id, primary_diagnosis, age_at_diagnosis, days_to_last_follow_up, days_to_last_known_disease_status, days_to_recurrence, classification_of_tumor, last_known_disease_status, morphology, progression_or_recurrence, site_of_resection_or_biopsy, tissue_or_organ_of_origin, tumor_grade, tumor_stage) VALUES ('1f44bbcb-2083-482a-9f75-25828c013e96', 'MOLM14 Pooled Reference', 'Proteogenomic Translational Research Centers (PTRC)', '210e2493-e438-4156-a527-f7fc585c9264', 'MOLM14 Pooled Reference-DX', NULL, NULL, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('4a4b2172-550c-4dbd-adad-8b3425f3ddea', 'MOLM14', 'Proteogenomic Translational Research Centers (PTRC)', '68608158-3b87-4b3c-b77b-c5e7b2cb9b1e', 'MOLM14-DX', NULL, NULL, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('6cea33b1-3543-4a57-942d-e94f76c0c705', 'HCI030', 'Proteogenomic Translational Research Centers (PTRC)', '907c0bc3-451f-4e90-968e-2fc80f6b9b2e', 'HCI030-DX', NULL, NULL, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('1fdbbc88-2258-4ec9-b7d8-f5fe633e990a', 'WHIM12', 'Proteogenomic Translational Research Centers (PTRC)', '24ba07cd-df9e-4d1e-8d85-e0cbfcd79e20', 'WHIM12-DX', NULL, NULL, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('7eb3e9c7-a440-4e0f-bc6a-d77a0052ffee', 'WHIM14', 'Proteogenomic Translational Research Centers (PTRC)', '07ef52d8-a2ff-4874-b599-6ccef4a16c4e', 'WHIM14-DX', NULL, NULL, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);