-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.HTAN_versioned.clinical_tier3_breast_r5`
(
  Breast_Carcinoma_Estrogen_Receptor_Status STRING OPTIONS(description="Text term to represent the overall result of Estrogen Receptor (ER) testing in a participant with breast cancer"),
  Breast_Cancer_Allred_Estrogen_Receptor_Score STRING OPTIONS(description="The numeric Allred score, that is cell staining percentage plus intensity, to determine estrogen receptor status."),
  Breast_Quadrant_Site STRING OPTIONS(description="The breast quadrant or structure from which the breast tissue specimen was removed for microscopic examination."),
  Breast_Carcinoma_HER2_Ratio_Diagnosis STRING OPTIONS(description="HER2 ratio of the participant at diagnosis"),
  Breast_Carcinoma_PR_Status_Percentage_Value STRING OPTIONS(description="A numerical quantity measured or assigned or computed which captures the progesterone receptor level measured in a participant with breast cancer"),
  Timepoint_Label STRING OPTIONS(description="Label to identify the time point at which the clinical data or biospecimen was obtained (e.g. Baseline, End of Treatment, Overall survival, Final). NO PHI/PII INFORMATION IS ALLOWED."),
  Breast_Carcinoma_Histology_Category STRING OPTIONS(description="Classification of the type of invasive breast carcinoma diagnosed based on histologic attributes."),
  Component STRING OPTIONS(description="Category of metadata (e.g. Diagnosis, Biospecimen, scRNA-seq Level 1, etc.); provide the same one for all items/rows."),
  Stop_Days_from_Index STRING OPTIONS(description="Number of days from the date of birth (index date) to the end date of the event (e.g. exposure to environmental factor, treatment start, etc.). Note: if the event occurs at a single time point, e.g. a diagnosis or a lab test, the values for this column is 'Not Applicable'"),
  Breast_Carcinoma_Progesteroner_Receptor_Status STRING OPTIONS(description="Text term to represent the overall result of Progresterone Receptor (PR) testing in a participant with breast cancer"),
  Breast_Carcinoma_Surgical_Procedure_Name STRING OPTIONS(description="Text name of a surgical procedure performed for a person with a diagnosis of breast cancer"),
  Breast_Imaging_Performed_Type STRING OPTIONS(description="The kind of technology or method performed for screening, diagnosis, surgical procedures or therapy that aids in the visualization of the breast(s)."),
  Prior_Invasive_Breast_Disease STRING OPTIONS(description="Text term to indicate prior invasive breast condition in the participant"),
  Breast_Carcinoma_HER2_Status STRING OPTIONS(description="Text term to signify the result of the medical procedure that involves testing a sample of blood or tissue for HER2 in a participant with breast cancer"),
  HER2_Breast_Carcinoma_Copy_Number_Total STRING OPTIONS(description="Result of HER2 Copy Number testing (in a participant with breast cancer), expressed as a range of values."),
  Breast_Carcinoma_HER2_Centromere17_Copynumber_Total STRING OPTIONS(description="Number of Cells Counted for HER2 & Centromere 17 Copy Numbers in a participant with breast cancer"),
  Breast_Carcinoma_ER_Status_Percentage_Value STRING OPTIONS(description="A numerical quantity measured or assigned or computed which captures the estrogen receptor level measured in a participant with breast cancer"),
  Breast_Carcinoma_ER_Staining_Intensity STRING OPTIONS(description="Text term to indicate the ER staining intensity on pathology assessment in a participant with breast cancer"),
  Breast_Carcinoma_Centromere_17_Copy_Number STRING OPTIONS(description="Result of Centromere 17 testing in a sample or specimen of metastatic breast carcinoma, expressed as a range of values."),
  Breast_Cancer_Genomic_Test_Performed STRING OPTIONS(description="Text term that represents the name of the genomic test performed for breast cancer."),
  Breast_Carcinoma_Detection_Method_Type STRING OPTIONS(description="The means, manner of procedure, or systematic course of actions performed in order to discover or identify breast cancer."),
  Oncotype_Score STRING OPTIONS(description="OncotypeDX recurrence score"),
  Breast_Cancer_Assessment_Tests STRING OPTIONS(description="Text term to identify assessment tests done in participants during diagnosis"),
  Invasive_Lobular_Breast_Carcinoma_Histologic_Category STRING OPTIONS(description="The histologic subtype for an infiltrating lobular carcinoma of the breast."),
  Mammaprint_Risk_Group STRING OPTIONS(description="Text term that represents the risk group for breast cancer as determined by assessment of the MammaPrint test."),
  entityId STRING OPTIONS(description="Synapse ID of entity"),
  Breast_Carcinoma_HER2_Chromosome17_Ratio STRING OPTIONS(description="HER2 chromosome 17 ratio in participants with breast cancer"),
  Multifocal_Breast_Carcinoma_Present_Indicator STRING OPTIONS(description="A response to indicate if there is breast cancer characterized by the presence of multiple cancerous tumors that originate from the same clone and usually located in the same quadrant of the breast."),
  Oncotype_Risk_Group STRING OPTIONS(description="Text term that represents the risk group for breast cancer as determined by assessment of the Oncotype recurrence score."),
  HTAN_Participant_ID STRING OPTIONS(description="HTAN ID associated with a patient based on HTAN ID SOP (eg HTANx_yyy )"),
  Breast_Carcinoma_PR_Staining_Intensity STRING OPTIONS(description="Text term to indicate the PR staining intensity on pathology assessment in a participant with breast cancer"),
  BIRADS_Mammography_Breast_Density_Category STRING OPTIONS(description="The category that describes the relative amount of different tissues present in the breast on a mammogram based on the updated 2015 edition of the American College of Radiology's Breast Imaging Reporting and Data System (BI-RADS) reporting guidelines."),
  Start_Days_from_Index STRING OPTIONS(description="Number of days from the date of birth (index date) to the date of an event (e.g. exposure to environmental factor, treatment start, etc.). If not applicable please enter 'Not Applicable'"),
  Invasive_Ductal_Breast_Carcinoma_Histologic_Category STRING OPTIONS(description="The histologic subtype for the most common type of invasive breast carcinoma."),
  Breast_Biopsy_Procedure_Finding_Type STRING OPTIONS(description="Text term to describe the result of the examination of the breast tissue specimen or fluid as related to the presence and nature of disease."),
  Multicentric_Breast_Carcinoma_Present_Indicator STRING OPTIONS(description="A response to indicate if there is breast cancer characterized by the presence of multiple cancerous tumors that originate from different clones and usually located in different quadrants of the breast."),
  Id STRING OPTIONS(description="Unique identifier of entity e.g. a96059eb-81af-4b24-ae50-9242c0d8f819"),
  Hormone_Therapy_Breast_Cancer_Prevention_Indicator STRING OPTIONS(description="Did the patient receive hormonal therapy for prevention of breast cancer?"),
  HTAN_Center STRING OPTIONS(description="Name of HTAN Center e.g. HTAN HTAPP"),
  Manifest_Id STRING OPTIONS(description="Synapse ID of manifest containing file annotation"),
  Manifest_Version INT64 OPTIONS(description="Latest version of metadata manifest")
)
OPTIONS(
  friendly_name="HTAN CLINICAL TIER 3 DATA - BREAST R5 VERSIONED",
  description="This table contains third-tier, breast clinical information about HTAN patient cases. Data was extracted from HTAN Synapse projects in April 2024 and corresponds to HTAN Data Release 5.1. More details: see https://data.humantumoratlas.org/standard/clinical",
  labels=[("access", "open"), ("data_type", "clinical_data"), ("program", "htan"), ("source", "htan"), ("category", "clinical_biospecimen_data"), ("status", "current")]
);

INSERT INTO `isb-cgc-bq.HTAN_versioned.clinical_tier3_breast_r5` (Breast_Carcinoma_Estrogen_Receptor_Status, Breast_Cancer_Allred_Estrogen_Receptor_Score, Breast_Quadrant_Site, Breast_Carcinoma_HER2_Ratio_Diagnosis, Breast_Carcinoma_PR_Status_Percentage_Value, Timepoint_Label, Breast_Carcinoma_Histology_Category, Component, Stop_Days_from_Index, Breast_Carcinoma_Progesteroner_Receptor_Status, Breast_Carcinoma_Surgical_Procedure_Name, Breast_Imaging_Performed_Type, Prior_Invasive_Breast_Disease, Breast_Carcinoma_HER2_Status, HER2_Breast_Carcinoma_Copy_Number_Total, Breast_Carcinoma_HER2_Centromere17_Copynumber_Total, Breast_Carcinoma_ER_Status_Percentage_Value, Breast_Carcinoma_ER_Staining_Intensity, Breast_Carcinoma_Centromere_17_Copy_Number, Breast_Cancer_Genomic_Test_Performed, Breast_Carcinoma_Detection_Method_Type, Oncotype_Score, Breast_Cancer_Assessment_Tests, Invasive_Lobular_Breast_Carcinoma_Histologic_Category, Mammaprint_Risk_Group, entityId, Breast_Carcinoma_HER2_Chromosome17_Ratio, Multifocal_Breast_Carcinoma_Present_Indicator, Oncotype_Risk_Group, HTAN_Participant_ID, Breast_Carcinoma_PR_Staining_Intensity, BIRADS_Mammography_Breast_Density_Category, Start_Days_from_Index, Invasive_Ductal_Breast_Carcinoma_Histologic_Category, Breast_Biopsy_Procedure_Finding_Type, Multicentric_Breast_Carcinoma_Present_Indicator, Id, Hormone_Therapy_Breast_Cancer_Prevention_Indicator, HTAN_Center, Manifest_Id, Manifest_Version) VALUES ('Positive', NULL, NULL, NULL, '5.0', 'Primary Resection', NULL, 'BreastCancerTier3', NULL, 'Negative', NULL, NULL, NULL, 'Negative', NULL, NULL, '10.6', 'unknown', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'syn24983455', NULL, NULL, NULL, 'HTA9_1', NULL, NULL, '23281', NULL, NULL, NULL, '640a6afe-fd1c-41a2-8b8a-fb1fd75fddff', NULL, 'HTAN OHSU', 'syn39142015', 5), ('Positive', NULL, NULL, NULL, '0.0', 'Biopsy 1', NULL, 'BreastCancerTier3', NULL, 'Negative', NULL, NULL, NULL, 'Negative', NULL, NULL, '95.0', 'Strong', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'syn24983456', NULL, NULL, NULL, 'HTA9_1', NULL, NULL, '25726', NULL, NULL, NULL, 'a1b2b00a-1133-433b-b6a2-60d1609f81a4', NULL, 'HTAN OHSU', 'syn39142015', 5), ('Positive', NULL, NULL, NULL, '0.0', 'Biopsy 2', NULL, 'BreastCancerTier3', NULL, 'Negative', NULL, NULL, NULL, 'Negative', NULL, NULL, '95.0', 'Strong', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'syn24983457', NULL, NULL, NULL, 'HTA9_1', NULL, NULL, '25969', NULL, NULL, NULL, '9b9c582c-cd9b-41db-80e4-cccea75db717', NULL, 'HTAN OHSU', 'syn39142015', 5), ('Positive', NULL, NULL, NULL, '0.0', 'Biopsy 4', NULL, 'BreastCancerTier3', NULL, 'Negative', NULL, NULL, NULL, 'Negative', NULL, NULL, '100.0', 'unknown', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'syn24983459', NULL, NULL, NULL, 'HTA9_1', NULL, NULL, '26999', NULL, NULL, NULL, 'ed3f277f-5a2f-459f-beec-f45be5405abb', NULL, 'HTAN OHSU', 'syn39142015', 5), ('Positive', NULL, NULL, NULL, '0.0', 'Biopsy 5', NULL, 'BreastCancerTier3', NULL, 'Negative', NULL, NULL, NULL, 'Negative', NULL, NULL, '100.0', 'unknown', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'syn29401121', NULL, NULL, NULL, 'HTA9_1', NULL, NULL, '27484', NULL, NULL, NULL, '41bbe72f-6ec6-4190-993c-4e8272041906', NULL, 'HTAN OHSU', 'syn39142015', 5);