-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.CPTAC.clinical_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)"),
  primary_site STRING OPTIONS(description="The text term used to describe the general location of the malignant disease, as categorized by the World Health Organization's (WHO) International Classification of Diseases for Oncology (ICD-O)"),
  disease_type STRING OPTIONS(description="The text term used to describe the type of malignant disease, as categorized by the World Health Organization's (WHO) International Classification of Diseases for Oncology (ICD-O)"),
  demographic_id STRING OPTIONS(description="Unique identifier attributed to data for the characterization of the patient by means of segmenting the population--for instance, characterization by age, sex, or race (e.g. 848b480c-0f56-11e9-a064-0a9c39d33490)"),
  demographic_submitter_id STRING OPTIONS(description="Unique identifier deriving from data submitter that is attributed to data for the characterization of the patient by means of segmenting the population (e.g., characterization by age, sex, or race) (e.g. P001-DM)"),
  race STRING OPTIONS(description="An arbitrary classification of a taxonomic group that is a division of a species; the provided values are based on the categories defined by the U.S. Office of Management and Business and used by the U.S. Census Bureau"),
  ethnicity STRING OPTIONS(description="An individual's self-described social and cultural grouping, specifically whether an individual describes themselves as Hispanic or Latino, based on the categories defined by the U.S. Office of Management and Business and used by the U.S. Census Bureau"),
  country_of_residence_at_enrollment STRING OPTIONS(description="The text term used to describe the patient's country of residence at the time they were enrolled in the study."),
  gender STRING OPTIONS(description="Text designations that identify gender; identification is self-reported and may come from a form, questionnaire, interview, etc."),
  age_at_index INT64 OPTIONS(description="The patient's age (in years) on the reference or anchor date date used during date obfuscation."),
  age_is_obfuscated BOOL OPTIONS(description="The age of the patient has been modified for compliance reasons. The actual age differs from what is reported. Other date intervals for this patient may also be modified."),
  days_to_birth INT64 OPTIONS(description="Number of days between the date used for index and the date from a person's date of birth represented as a calculated negative number of days"),
  days_to_death INT64 OPTIONS(description="Number of days between the date used for index and the date from a person's date of death represented as a calculated number of days"),
  cause_of_death STRING OPTIONS(description="Text term to identify the cause of death for a patient"),
  cause_of_death_source STRING OPTIONS(description="The text term used to describe the source used to determine the patient's cause of death."),
  vital_status STRING OPTIONS(description="The survival state of the person registered on the protocol")
)
OPTIONS(
  friendly_name="PROTEOGENOMIC TRANSLATIONAL RESEARCH CENTERS (PTRC) CLINICAL DATA",
  description="Clinical data was extracted from file metadata information for proteogenomic_translational_research_centers provided by CDA in August 2024 from the PDC release V4.3.",
  labels=[("access", "open"), ("data_type", "clinical_data"), ("source_0", "cda"), ("source_1", "pdc"), ("program", "cptac3"), ("category", "clinical_biospecimen_data"), ("status", "current"), ("version", "v4_3")]
);

INSERT INTO `isb-cgc-bq.CPTAC.clinical_proteogenomic_translational_research_centers_pdc_current` (case_id, case_submitter_id, project_submitter_id, primary_site, disease_type, demographic_id, demographic_submitter_id, race, ethnicity, country_of_residence_at_enrollment, gender, age_at_index, age_is_obfuscated, days_to_birth, days_to_death, cause_of_death, cause_of_death_source, vital_status) VALUES ('41438573-538a-42cd-86a1-b1d66a6c5478', '4', 'Proteogenomic Translational Research Centers (PTRC)', 'Ovary', 'Ovarian Serous Cystadenocarcinoma', 'b6647940-3027-4ceb-a023-1a9143aaed86', '4-DM', NULL, NULL, NULL, 'female', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('fbe4f529-26b6-4203-9f83-4a0405c9cf74', '6', 'Proteogenomic Translational Research Centers (PTRC)', 'Ovary', 'Ovarian Serous Cystadenocarcinoma', '81c093d7-e1f8-40a2-a7db-7265a4a298fb', '6-DM', NULL, NULL, NULL, 'female', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('e156560e-76b6-4eeb-ad0c-ead6b310b76f', '10', 'Proteogenomic Translational Research Centers (PTRC)', 'Ovary', 'Ovarian Serous Cystadenocarcinoma', '81cfa2ef-5c77-4c7e-a79d-359e28daa385', '10-DM', NULL, NULL, NULL, 'female', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('d1643329-ccde-48ae-a4c3-93f269eaffd7', '21', 'Proteogenomic Translational Research Centers (PTRC)', 'Ovary', 'Ovarian Serous Cystadenocarcinoma', 'a3628809-8158-4d55-abba-85825ac97ccb', '21-DM', NULL, NULL, NULL, 'female', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('82133ac9-a5e7-4b33-b3d4-7774056d17ec', '35', 'Proteogenomic Translational Research Centers (PTRC)', 'Ovary', 'Ovarian Serous Cystadenocarcinoma', '3201a223-3394-4f04-8b12-3e6acd92340b', '35-DM', NULL, NULL, NULL, 'female', NULL, NULL, NULL, NULL, NULL, NULL, NULL);