-- DBMS: snowflake
create or replace TABLE SEGMENTATIONS (
	"PatientID" VARCHAR(16777216),
	"StudyInstanceUID" VARCHAR(16777216),
	"SeriesInstanceUID" VARCHAR(16777216),
	"SOPInstanceUID" VARCHAR(16777216),
	"FrameOfReferenceUID" VARCHAR(16777216),
	"AnatomicRegion" VARIANT,
	"AnatomicRegionModifier" VARIANT,
	"SegmentedPropertyCategory" VARIANT,
	"SegmentedPropertyType" VARIANT,
	"SegmentAlgorithmType" VARCHAR(16777216),
	"SegmentAlgorithmName" VARCHAR(16777216),
	"SegmentNumber" NUMBER(38,0),
	"TrackingUID" VARCHAR(16777216),
	"TrackingID" VARCHAR(16777216),
	"segmented_SeriesInstanceUID" VARCHAR(16777216),
	"viewer_url" VARCHAR(16777216)
);

INSERT INTO "IDC"."IDC_V17"."SEGMENTATIONS" (SeriesInstanceUID, StudyInstanceUID, TrackingUID, PatientID, SegmentedPropertyCategory, SegmentAlgorithmType, SegmentNumber, SegmentedPropertyType, SegmentAlgorithmName, SOPInstanceUID, AnatomicRegion, segmented_SeriesInstanceUID, TrackingID, FrameOfReferenceUID, viewer_url, AnatomicRegionModifier) VALUES ('1.2.276.0.7230010.3.1.3.17436516.653383.1696970728.262449', '1.3.6.1.4.1.14519.5.2.1.6655.2359.347530668916195093993314226855', NULL, 'Lung_Dx-A0190', '{
  "CodeMeaning": "Radiologic Finding",
  "CodeValue": "C35869",
  "CodingSchemeDesignator": "NCIt"
}', 'SEMIAUTOMATIC', 2, '{
  "AnatomicRegionModifierSequence": [],
  "CodeMeaning": "FDG-Avid Tumor",
  "CodeValue": "C168968",
  "CodingSchemeDesignator": "NCIt",
  "SegmentedPropertyTypeModifierCodeSequence": []
}', 'BAMF-Lung-FDG-PET-CT', '1.2.276.0.7230010.3.1.4.17436516.653383.1696970728.262450', '{
  "CodeMeaning": "Lung",
  "CodeValue": "39607008",
  "CodingSchemeDesignator": "SCT"
}', NULL, NULL, '1.3.6.1.4.1.14519.5.2.1.6655.2359.138271048259053653884696768856', NULL, '{
  "CodeMeaning": "Right and left",
  "CodeValue": "51440002",
  "CodingSchemeDesignator": "SCT"
}'), ('1.2.276.0.7230010.3.1.3.17436516.664776.1696970888.933027', '1.3.6.1.4.1.14519.5.2.1.7009.2403.310711020836741121756601412628', NULL, 'ACRIN-NSCLC-FDG-PET-241', '{
  "CodeMeaning": "Radiologic Finding",
  "CodeValue": "C35869",
  "CodingSchemeDesignator": "NCIt"
}', 'SEMIAUTOMATIC', 2, '{
  "AnatomicRegionModifierSequence": [],
  "CodeMeaning": "FDG-Avid Tumor",
  "CodeValue": "C168968",
  "CodingSchemeDesignator": "NCIt",
  "SegmentedPropertyTypeModifierCodeSequence": []
}', 'BAMF-Lung-FDG-PET-CT', '1.2.276.0.7230010.3.1.4.17436516.664776.1696970888.933028', '{
  "CodeMeaning": "Lung",
  "CodeValue": "39607008",
  "CodingSchemeDesignator": "SCT"
}', NULL, NULL, '1.3.6.1.4.1.14519.5.2.1.7009.2403.331653382114194988162880540454', NULL, '{
  "CodeMeaning": "Right and left",
  "CodeValue": "51440002",
  "CodingSchemeDesignator": "SCT"
}'), ('1.2.276.0.7230010.3.1.3.17436516.666590.1696970914.61655', '1.3.6.1.4.1.14519.5.2.1.4334.1501.235943114230672958648726848000', NULL, 'R01-117', '{
  "CodeMeaning": "Radiologic Finding",
  "CodeValue": "C35869",
  "CodingSchemeDesignator": "NCIt"
}', 'SEMIAUTOMATIC', 2, '{
  "AnatomicRegionModifierSequence": [],
  "CodeMeaning": "FDG-Avid Tumor",
  "CodeValue": "C168968",
  "CodingSchemeDesignator": "NCIt",
  "SegmentedPropertyTypeModifierCodeSequence": []
}', 'BAMF-Lung-FDG-PET-CT', '1.2.276.0.7230010.3.1.4.17436516.666590.1696970914.61656', '{
  "CodeMeaning": "Lung",
  "CodeValue": "39607008",
  "CodingSchemeDesignator": "SCT"
}', NULL, NULL, '1.3.6.1.4.1.14519.5.2.1.4334.1501.258477471729273768248128963850', NULL, '{
  "CodeMeaning": "Right and left",
  "CodeValue": "51440002",
  "CodingSchemeDesignator": "SCT"
}'), ('1.2.276.0.7230010.3.1.3.17436516.651565.1696970702.349014', '1.3.6.1.4.1.14519.5.2.1.7009.2403.310711020836741121756601412628', NULL, 'ACRIN-NSCLC-FDG-PET-241', '{
  "CodeMeaning": "Radiologic Finding",
  "CodeValue": "C35869",
  "CodingSchemeDesignator": "NCIt"
}', 'SEMIAUTOMATIC', 2, '{
  "AnatomicRegionModifierSequence": [],
  "CodeMeaning": "FDG-Avid Tumor",
  "CodeValue": "C168968",
  "CodingSchemeDesignator": "NCIt",
  "SegmentedPropertyTypeModifierCodeSequence": []
}', 'BAMF-Lung-FDG-PET-CT', '1.2.276.0.7230010.3.1.4.17436516.651565.1696970702.349015', '{
  "CodeMeaning": "Lung",
  "CodeValue": "39607008",
  "CodingSchemeDesignator": "SCT"
}', NULL, NULL, '1.3.6.1.4.1.14519.5.2.1.7009.2403.331653382114194988162880540454', NULL, '{
  "CodeMeaning": "Right and left",
  "CodeValue": "51440002",
  "CodingSchemeDesignator": "SCT"
}'), ('1.2.276.0.7230010.3.1.3.17436516.664189.1696970884.510051', '1.3.6.1.4.1.14519.5.2.1.7009.2403.109906860154809337892916956712', NULL, 'ACRIN-NSCLC-FDG-PET-134', '{
  "CodeMeaning": "Radiologic Finding",
  "CodeValue": "C35869",
  "CodingSchemeDesignator": "NCIt"
}', 'SEMIAUTOMATIC', 2, '{
  "AnatomicRegionModifierSequence": [],
  "CodeMeaning": "FDG-Avid Tumor",
  "CodeValue": "C168968",
  "CodingSchemeDesignator": "NCIt",
  "SegmentedPropertyTypeModifierCodeSequence": []
}', 'BAMF-Lung-FDG-PET-CT', '1.2.276.0.7230010.3.1.4.17436516.664189.1696970884.510052', '{
  "CodeMeaning": "Lung",
  "CodeValue": "39607008",
  "CodingSchemeDesignator": "SCT"
}', NULL, NULL, '1.3.6.1.4.1.14519.5.2.1.7009.2403.137251274848917092866047430956', NULL, '{
  "CodeMeaning": "Right and left",
  "CodeValue": "51440002",
  "CodingSchemeDesignator": "SCT"
}');