-- DBMS: snowflake
create or replace TABLE SRRS_CLINICAL_TIER2_CURRENT (
	DAYS_TO_PROGRESSION VARCHAR(16777216),
	LAST_KNOWN_DISEASE_STATUS VARCHAR(16777216),
	DAYS_TO_LAST_KNOWN_DISEASE_STATUS VARCHAR(16777216),
	YEAR_OF_DEATH VARCHAR(16777216),
	PROGRESSION_OR_RECURRENCE_TYPE VARCHAR(16777216),
	PROGRESSION_OR_RECURRENCE VARCHAR(16777216),
	CANCER_INCIDENCE_LOCATION VARCHAR(16777216),
	MORPHOLOGY VARCHAR(16777216),
	DAYS_TO_PROGRESSION_FREE VARCHAR(16777216),
	TIMEPOINT_LABEL VARCHAR(16777216),
	COMPONENT VARCHAR(16777216),
	RACE VARCHAR(16777216),
	SITE_OF_RESECTION_OR_BIOPSY VARCHAR(16777216),
	STOP_DAYS_FROM_INDEX VARCHAR(16777216),
	NCI_ATLAS_CANCER_SITE VARCHAR(16777216),
	CANCER_INCIDENCE VARCHAR(16777216),
	PROGRESSION_OR_RECURRENCE_ANATOMIC_SITE VARCHAR(16777216),
	DAYS_TO_DEATH VARCHAR(16777216),
	AGE_AT_DIAGNOSIS VARCHAR(16777216),
	ETHNICITY VARCHAR(16777216),
	CAUSE_OF_DEATH_SOURCE VARCHAR(16777216),
	TREATMENT_TYPE VARCHAR(16777216),
	TUMOR_GRADE VARCHAR(16777216),
	TEST_RESULT VARCHAR(16777216),
	YEARS_SMOKED VARCHAR(16777216),
	MEDICALLY_UNDERSERVED_AREA VARCHAR(16777216),
	DAYS_TO_FOLLOW_UP VARCHAR(16777216),
	VITAL_STATUS VARCHAR(16777216),
	ENTITYID VARCHAR(16777216),
	PRIMARY_DIAGNOSIS VARCHAR(16777216),
	COUNTRY_OF_BIRTH VARCHAR(16777216),
	TUMOR_LARGEST_DIMENSION_DIAMETER VARCHAR(16777216),
	MEDICALLY_UNDERSERVED_SCORE VARCHAR(16777216),
	GENDER VARCHAR(16777216),
	MOLECULAR_ANALYSIS_METHOD VARCHAR(16777216),
	DAYS_TO_RECURRENCE VARCHAR(16777216),
	HTAN_PARTICIPANT_ID VARCHAR(16777216),
	GENE_SYMBOL VARCHAR(16777216),
	START_DAYS_FROM_INDEX VARCHAR(16777216),
	PACK_YEARS_SMOKED VARCHAR(16777216),
	TISSUE_OR_ORGAN_OF_ORIGIN VARCHAR(16777216),
	DAYS_TO_LAST_FOLLOW_UP VARCHAR(16777216),
	ID VARCHAR(16777216),
	EDUCATION_LEVEL VARCHAR(16777216),
	CAUSE_OF_DEATH VARCHAR(16777216),
	RURAL_VS_URBAN VARCHAR(16777216),
	HTAN_CENTER VARCHAR(16777216),
	MANIFEST_ID VARCHAR(16777216),
	MANIFEST_VERSION NUMBER(38,0)
);

INSERT INTO "HTAN_2"."HTAN"."SRRS_CLINICAL_TIER2_CURRENT" (GENE_SYMBOL, PROGRESSION_OR_RECURRENCE_ANATOMIC_SITE, TUMOR_GRADE, DAYS_TO_LAST_KNOWN_DISEASE_STATUS, CANCER_INCIDENCE_LOCATION, MANIFEST_ID, YEARS_SMOKED, TIMEPOINT_LABEL, VITAL_STATUS, NCI_ATLAS_CANCER_SITE, MOLECULAR_ANALYSIS_METHOD, MEDICALLY_UNDERSERVED_SCORE, GENDER, DAYS_TO_PROGRESSION_FREE, TISSUE_OR_ORGAN_OF_ORIGIN, PRIMARY_DIAGNOSIS, MEDICALLY_UNDERSERVED_AREA, TEST_RESULT, HTAN_CENTER, ID, DAYS_TO_PROGRESSION, EDUCATION_LEVEL, COMPONENT, SITE_OF_RESECTION_OR_BIOPSY, LAST_KNOWN_DISEASE_STATUS, DAYS_TO_FOLLOW_UP, CANCER_INCIDENCE, COUNTRY_OF_BIRTH, CAUSE_OF_DEATH, ETHNICITY, PROGRESSION_OR_RECURRENCE, TUMOR_LARGEST_DIMENSION_DIAMETER, MORPHOLOGY, CAUSE_OF_DEATH_SOURCE, RACE, STOP_DAYS_FROM_INDEX, START_DAYS_FROM_INDEX, DAYS_TO_LAST_FOLLOW_UP, PROGRESSION_OR_RECURRENCE_TYPE, AGE_AT_DIAGNOSIS, YEAR_OF_DEATH, DAYS_TO_RECURRENCE, MANIFEST_VERSION, HTAN_PARTICIPANT_ID, DAYS_TO_DEATH, RURAL_VS_URBAN, ENTITYID, PACK_YEARS_SMOKED, TREATMENT_TYPE) VALUES ('EGFR, KRAS, ALK', NULL, 'Not Reported', '388', 'Douglas, Colorado', 'syn51607133', '15', 'Baseline', 'Dead', NULL, 'IHC', '60.8', 'male', NULL, 'Lower lobe lung', 'Non-small cell carcinoma', 'Medically Underserved Area - No', 'Negative', 'HTAN SRRS', '0766b753-2390-4231-989c-3e161aff5dac', NULL, 'Data not available', 'SRRSClinicalDataTier2', 'Lower lobe lung', 'With tumor', '27230', '35.8', NULL, 'unknown', 'not hispanic or latino', 'No', '4.5cm', '2244842', NULL, 'white', NULL, '26862', '388', NULL, '26843', '2023.0', 'Not Applicable', 2, 'HTA15_30007', '27251.0', 'Urban Population (population >50000)', NULL, '7.5', 'Surgery, Chemotherapy'), ('Not Applicable', 'unknown', 'G2', '161', 'Archuleta, Colorado', 'syn51607133', '50', 'Baseline', 'Dead', NULL, 'Not Applicable', '50.1', 'male', NULL, 'Lower lobe lung', 'Squamous cell carcinoma NOS', 'Medically Underserved Area - Yes', 'Not Applicable', 'HTAN SRRS', '881485f9-4678-42d8-8e1b-f256372b9b8d', NULL, 'Data not available', 'SRRSClinicalDataTier2', 'Lower lobe lung', 'unknown tumor status', '24042', '31.9', NULL, 'unknown', 'not hispanic or latino', 'unknown', '3.4cm', '2253973', NULL, 'white', NULL, '24028', '161', 'unknown', '23882', '2023.0', 'Not Applicable', 2, 'HTA15_30001', '25108.0', 'Urban Cluster (population 2500 - 50000)', NULL, '100', 'Surgery'), ('EGFR, KRAS, BRAF, ERBB2, MET, TP53', 'unknown', 'G3', '68', 'Adams, Colorado', 'syn51607133', '30', 'Baseline', 'Alive', NULL, 'IHC', '57.1', 'male', NULL, 'Upper lobe lung', 'Squamous cell carcinoma NOS', 'Medically Underserved Area - Yes', 'Positive', 'HTAN SRRS', '672737a2-dcd1-4768-8cb6-822131c904b5', NULL, 'Data not available', 'SRRSClinicalDataTier2', 'Upper lobe lung', 'unknown tumor status', '21305', '51.5', NULL, 'Not Applicable', 'not hispanic or latino', 'unknown', '2.5cm', '2254339', NULL, 'white', NULL, '21277', '68', 'unknown', '21238', NULL, 'Not Applicable', 2, 'HTA15_30005', NULL, 'Urban Population (population >50000)', NULL, 'Not Reported', 'Surgery'), ('MLH1, MSH2, MSH6, PMS2', NULL, 'G2', '168', 'Middlesex, Massachusetts', 'syn52799106', '0', 'Baseline', 'Alive', NULL, 'IHC', '61.9', 'male', NULL, 'Colon NOS', 'Adenocarcinoma NOS', 'Medically Underserved Area - Yes', 'Normal', 'HTAN SRRS', 'a86d2eec-385e-4fab-9367-fb0fcc9bd251', NULL, 'Data not available', 'SRRSClinicalDataTier2', 'Rectosigmoid junction', 'With tumor', '22367', '34.6', NULL, 'Not Applicable', 'not hispanic or latino', 'No', '6.2cm', '8140/3', NULL, 'white', NULL, '22215', '168', NULL, '22199', NULL, '0', 4, 'HTA15_51833', NULL, 'Urban Population (population >50000)', NULL, '0', 'Surgery'), ('MLH1, MSH2, MSH6, PMS2', NULL, 'G2', '127', 'Newport, Rhode Island', 'syn52799106', '0', 'Baseline', 'Dead', NULL, 'IHC', '60.4', 'male', NULL, 'Colon NOS', 'Adenocarcinoma NOS', 'Medically Underserved Area - Yes', 'Normal', 'HTAN SRRS', 'e9174c7d-4d66-455f-a8f8-456dbd48970b', NULL, 'Data not available', 'SRRSClinicalDataTier2', 'Colon NOS', 'Distant met recurrence/progression', '17932', '37.3', NULL, 'Cardiovascular Disorder NOS', 'not hispanic or latino', 'No', '7.2cm', '8140/3', 'Autopsy', 'white', NULL, '17853', '127', NULL, '17808', '2022.0', '0', 4, 'HTA15_51477', '124.0', 'Urban Cluster (population 2500 - 50000)', NULL, '0', 'Surgery');