-- DBMS: snowflake
create or replace TABLE CLINICAL_TIER1_DIAGNOSIS_CURRENT (
	"Last_Known_Disease_Status" VARCHAR(16777216),
	"Days_to_Last_Known_Disease_Status" VARCHAR(16777216),
	"Metastasis_at_Diagnosis_Site" VARCHAR(16777216),
	"Best_Overall_Response" VARCHAR(16777216),
	"Tumor_Confined_to_Organ_of_Origin" VARCHAR(16777216),
	"Supratentorial_Localization" VARCHAR(16777216),
	"Percent_Tumor_Invasion" VARCHAR(16777216),
	"Days_to_Progression_Free" VARCHAR(16777216),
	"Component" VARCHAR(16777216),
	"Mitotic_Count" VARCHAR(16777216),
	"Pregnant_at_Diagnosis" VARCHAR(16777216),
	"Age_at_Diagnosis" VARCHAR(16777216),
	"IRS_Group" VARCHAR(16777216),
	"Classification_of_Tumor" VARCHAR(16777216),
	"Greatest_Tumor_Dimension" VARCHAR(16777216),
	"IRS_Stage" VARCHAR(16777216),
	"WHO_NTE_Grade" VARCHAR(16777216),
	"AJCC_Pathologic_Stage" VARCHAR(16777216),
	"INPC_Grade" VARCHAR(16777216),
	"INRG_Stage" VARCHAR(16777216),
	"Vascular_Invasion_Present" VARCHAR(16777216),
	"Gleason_Patterns_Percent" VARCHAR(16777216),
	"entityId" VARCHAR(16777216),
	"Mitosis_Karyorrhexis_Index" VARCHAR(16777216),
	"Ovarian_Specimen_Status" VARCHAR(16777216),
	"Margins_Involved_Site" VARCHAR(16777216),
	"Site_of_Resection_or_Biopsy" VARCHAR(16777216),
	"Prior_Treatment" VARCHAR(16777216),
	"AJCC_Clinical_M" VARCHAR(16777216),
	"Gleason_Grade_Tertiary" VARCHAR(16777216),
	"Days_to_Diagnosis" VARCHAR(16777216),
	"Anaplasia_Present_Type" VARCHAR(16777216),
	"Tumor_Grade" VARCHAR(16777216),
	"Lymph_Nodes_Positive" VARCHAR(16777216),
	"AJCC_Clinical_Stage" VARCHAR(16777216),
	"INPC_Histologic_Group" VARCHAR(16777216),
	"Residual_Disease" VARCHAR(16777216),
	"Synchronous_Malignancy" VARCHAR(16777216),
	"Margin_Distance" VARCHAR(16777216),
	"Laterality" VARCHAR(16777216),
	"AJCC_Pathologic_T" VARCHAR(16777216),
	"IGCCCG_Stage" VARCHAR(16777216),
	"WHO_CNS_Grade" VARCHAR(16777216),
	"Days_to_Progression" VARCHAR(16777216),
	"Progression_or_Recurrence_Type" VARCHAR(16777216),
	"AJCC_Pathologic_M" VARCHAR(16777216),
	"AJCC_Clinical_N" VARCHAR(16777216),
	"Progression_or_Recurrence" VARCHAR(16777216),
	"Anaplasia_Present" VARCHAR(16777216),
	"AJCC_Clinical_T" VARCHAR(16777216),
	"Morphology" VARCHAR(16777216),
	"Primary_Gleason_Grade" VARCHAR(16777216),
	"Non_Nodal_Regional_Disease" VARCHAR(16777216),
	"Cog_Neuroblastoma_Risk_Group" VARCHAR(16777216),
	"International_Prognostic_Index" VARCHAR(16777216),
	"Vascular_Invasion_Type" VARCHAR(16777216),
	"Cog_Rhabdomyosarcoma_Risk_Group" VARCHAR(16777216),
	"AJCC_Staging_System_Edition" VARCHAR(16777216),
	"Breslow_Thickness" VARCHAR(16777216),
	"ISS_Stage" VARCHAR(16777216),
	"Medulloblastoma_Molecular_Classification" VARCHAR(16777216),
	"Lymph_Node_Involved_Site" VARCHAR(16777216),
	"Primary_Diagnosis" VARCHAR(16777216),
	"Tumor_Depth" VARCHAR(16777216),
	"Days_to_Recurrence" VARCHAR(16777216),
	"Lymphatic_Invasion_Present" VARCHAR(16777216),
	"Gross_Tumor_Weight" VARCHAR(16777216),
	"Id" VARCHAR(16777216),
	"First_Symptom_Prior_to_Diagnosis" VARCHAR(16777216),
	"Peritoneal_Fluid_Cytological_Status" VARCHAR(16777216),
	"Precancerous_Condition_Type" VARCHAR(16777216),
	"AJCC_Pathologic_N" VARCHAR(16777216),
	"Prior_Malignancy" VARCHAR(16777216),
	"Ovarian_Surface_Involvement" VARCHAR(16777216),
	"Progression_or_Recurrence_Anatomic_Site" VARCHAR(16777216),
	"Secondary_Gleason_Grade" VARCHAR(16777216),
	"Metastasis_at_Diagnosis" VARCHAR(16777216),
	"Micropapillary_Features" VARCHAR(16777216),
	"Gleason_Grade_Group" VARCHAR(16777216),
	"Tumor_Focality" VARCHAR(16777216),
	"Perineural_Invasion_Present" VARCHAR(16777216),
	"Method_of_Diagnosis" VARCHAR(16777216),
	"INSS_Stage" VARCHAR(16777216),
	"Lymph_Nodes_Tested" VARCHAR(16777216),
	"Tumor_Largest_Dimension_Diameter" VARCHAR(16777216),
	"HTAN_Participant_ID" VARCHAR(16777216),
	"Year_of_Diagnosis" VARCHAR(16777216),
	"Tissue_or_Organ_of_Origin" VARCHAR(16777216),
	"Non_Nodal_Tumor_Deposits" VARCHAR(16777216),
	"Days_to_Last_Follow_up" VARCHAR(16777216),
	"HTAN_Center" VARCHAR(16777216),
	"Manifest_Id" VARCHAR(16777216),
	"Manifest_Version" NUMBER(38,0)
);

INSERT INTO "HTAN_2"."HTAN"."CLINICAL_TIER1_DIAGNOSIS_CURRENT" (Gleason_Grade_Tertiary, Method_of_Diagnosis, Ovarian_Specimen_Status, Best_Overall_Response, Year_of_Diagnosis, INSS_Stage, Anaplasia_Present_Type, AJCC_Clinical_Stage, AJCC_Clinical_T, Morphology, INPC_Histologic_Group, Cog_Neuroblastoma_Risk_Group, Gleason_Grade_Group, Synchronous_Malignancy, Vascular_Invasion_Type, Tumor_Grade, HTAN_Participant_ID, IGCCCG_Stage, Gross_Tumor_Weight, Id, AJCC_Clinical_N, Mitosis_Karyorrhexis_Index, AJCC_Pathologic_M, IRS_Stage, Tissue_or_Organ_of_Origin, Perineural_Invasion_Present, Medulloblastoma_Molecular_Classification, Lymph_Nodes_Positive, Breslow_Thickness, Anaplasia_Present, AJCC_Clinical_M, HTAN_Center, Metastasis_at_Diagnosis_Site, Margins_Involved_Site, Progression_or_Recurrence, WHO_CNS_Grade, Days_to_Recurrence, entityId, Pregnant_at_Diagnosis, Vascular_Invasion_Present, IRS_Group, Greatest_Tumor_Dimension, Days_to_Progression_Free, Micropapillary_Features, Tumor_Confined_to_Organ_of_Origin, Lymph_Nodes_Tested, Non_Nodal_Regional_Disease, Component, Ovarian_Surface_Involvement, Precancerous_Condition_Type, Manifest_Version, Days_to_Last_Follow_up, AJCC_Pathologic_Stage, Site_of_Resection_or_Biopsy, Cog_Rhabdomyosarcoma_Risk_Group, Progression_or_Recurrence_Type, Gleason_Patterns_Percent, Primary_Gleason_Grade, Manifest_Id, Tumor_Focality, Residual_Disease, Metastasis_at_Diagnosis, Lymph_Node_Involved_Site, Days_to_Last_Known_Disease_Status, Prior_Treatment, Supratentorial_Localization, Prior_Malignancy, Secondary_Gleason_Grade, Classification_of_Tumor, Age_at_Diagnosis, Primary_Diagnosis, INPC_Grade, Days_to_Progression, Mitotic_Count, AJCC_Pathologic_N, Progression_or_Recurrence_Anatomic_Site, Percent_Tumor_Invasion, Last_Known_Disease_Status, Days_to_Diagnosis, International_Prognostic_Index, Laterality, AJCC_Pathologic_T, ISS_Stage, AJCC_Staging_System_Edition, INRG_Stage, Peritoneal_Fluid_Cytological_Status, First_Symptom_Prior_to_Diagnosis, Non_Nodal_Tumor_Deposits, WHO_NTE_Grade, Tumor_Largest_Dimension_Diameter, Lymphatic_Invasion_Present, Tumor_Depth, Margin_Distance) VALUES (NULL, NULL, NULL, NULL, '2014.0', NULL, NULL, NULL, NULL, 'Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, 'Low Grade', 'HTA7_919', NULL, NULL, '309ac8ff-593f-498b-8eda-5a4615768b8a', NULL, NULL, NULL, NULL, 'Descending colon', 'No', NULL, '0', NULL, NULL, 'M0', 'HTAN HMS', NULL, NULL, 'No', NULL, NULL, 'syn26707364', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '13', NULL, 'Diagnosis', NULL, NULL, 5, '2103', 'Stage I', 'Descending colon', NULL, NULL, NULL, NULL, 'syn39143347', NULL, NULL, 'No Metastasis', NULL, '1787', 'No', NULL, NULL, NULL, NULL, '22995', 'Adenocarcinoma NOS', NULL, NULL, NULL, 'N0', NULL, NULL, 'Tumor free', NULL, NULL, NULL, 'T1', NULL, '8th', NULL, NULL, NULL, NULL, NULL, '1.2', 'No', NULL, NULL), (NULL, NULL, NULL, NULL, '2019.0', NULL, NULL, NULL, NULL, 'Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, 'G3', 'HTA7_1019', NULL, NULL, '499997c0-d81b-40f9-9c94-1c4bb4785ef1', NULL, NULL, 'M1b', NULL, 'Upper lobe lung', NULL, NULL, NULL, NULL, NULL, NULL, 'HTAN HMS', NULL, NULL, 'No', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Diagnosis', NULL, NULL, 5, '1134', NULL, 'Upper lobe lung', NULL, NULL, NULL, NULL, 'syn39143347', NULL, NULL, NULL, NULL, '1134', NULL, NULL, NULL, NULL, NULL, '21907', 'Adenocarcinoma NOS', NULL, NULL, NULL, 'N0', NULL, NULL, 'Tumor free', NULL, NULL, 'Right', 'T3', NULL, '8th', NULL, NULL, NULL, NULL, NULL, '2.0', NULL, NULL, NULL), (NULL, NULL, NULL, NULL, '2016.0', NULL, NULL, NULL, NULL, 'Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, 'Low Grade', 'HTA7_981', NULL, NULL, '60bf1f53-c5df-4627-a0d3-0716df48e146', NULL, NULL, NULL, NULL, 'Sigmoid colon', 'Yes', NULL, '0', NULL, NULL, 'M0', 'HTAN HMS', NULL, NULL, 'No', NULL, NULL, 'syn26707412', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '21', NULL, 'Diagnosis', NULL, NULL, 5, '1492', 'Stage IIIB', 'Sigmoid colon', NULL, NULL, NULL, NULL, 'syn39143347', NULL, NULL, 'No Metastasis', NULL, '198', 'No', NULL, NULL, NULL, NULL, '30660', 'Adenocarcinoma NOS', NULL, NULL, NULL, 'N1c', NULL, NULL, 'Tumor free', NULL, NULL, NULL, 'T4a', NULL, '8th', NULL, NULL, NULL, NULL, NULL, '5.2', 'Yes', NULL, NULL), (NULL, NULL, NULL, NULL, '2014.0', NULL, NULL, NULL, NULL, 'Adenocarcinoma, with Mucinous Features', NULL, NULL, NULL, NULL, NULL, 'High Grade', 'HTA7_918', NULL, NULL, '5951c0ca-5bdc-4d48-b00e-7e04b25bdc22', NULL, NULL, NULL, NULL, 'Transverse colon', 'No', NULL, '0', NULL, NULL, 'M0', 'HTAN HMS', NULL, NULL, 'No', NULL, NULL, 'syn26707363', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '37', NULL, 'Diagnosis', NULL, NULL, 5, '2129', 'Stage IIA', 'Transverse colon', NULL, NULL, NULL, NULL, 'syn39143347', NULL, NULL, 'No Metastasis', NULL, '1867', 'No', NULL, NULL, NULL, NULL, '22265', 'Mucous adenocarcinoma', NULL, NULL, NULL, 'N0', NULL, NULL, 'Tumor free', NULL, NULL, NULL, 'T3', NULL, '8th', NULL, NULL, NULL, NULL, NULL, '4.5', 'No', NULL, NULL), (NULL, NULL, NULL, NULL, '2015.0', NULL, NULL, NULL, NULL, 'Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, 'Low Grade', 'HTA7_948', NULL, NULL, '8826caf9-f50c-490c-aa89-666692f2df67', NULL, NULL, NULL, NULL, 'Rectum NOS', 'No', NULL, '0', NULL, NULL, 'M0', 'HTAN HMS', NULL, NULL, 'No', NULL, NULL, 'syn26707383', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '23', NULL, 'Diagnosis', NULL, NULL, 5, '1665', 'Stage IIA', 'Rectum NOS', NULL, NULL, NULL, NULL, 'syn39143347', NULL, NULL, 'No Metastasis', NULL, '1146', 'No', NULL, NULL, NULL, NULL, '15695', 'Adenocarcinoma NOS', NULL, NULL, NULL, 'N0', NULL, NULL, 'Tumor free', NULL, NULL, NULL, 'T3', NULL, '8th', NULL, NULL, NULL, NULL, NULL, '4.8', 'No', NULL, NULL);