From 0dfda9e3da54e49123d268f3ae61424f30abe097 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Mon, 11 Nov 2024 12:02:45 -0500 Subject: [PATCH] define variables to be used in hashset --- ...atialViewerExternalLinkDatasetDisplay.java | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerExternalLinkDatasetDisplay.java b/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerExternalLinkDatasetDisplay.java index a2890dd..46d452d 100644 --- a/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerExternalLinkDatasetDisplay.java +++ b/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerExternalLinkDatasetDisplay.java @@ -1,6 +1,7 @@ package org.kpmp.spatialViewerDataset; import java.util.ArrayList; +import java.util.HashSet; import java.util.List; import java.util.Set; @@ -56,7 +57,26 @@ public SpatialViewerExternalLinkDatasetDisplay(SpatialViewerExternalLinkDataset dataType = svLink.getDataType(); spectrackSampleId = svLink.getSpectrackSampleId(); participantId = svLink.getParticipantId(); - + redcapId = new HashSet(); + age = new HashSet(); + protocol = new HashSet(); + sampleType = new HashSet(); + sex = new HashSet(); + tissueSource = new HashSet(); + enrollmentCategory = new HashSet(); + primaryAdjudicatedCategory = new HashSet(); + kdigoStage = new HashSet(); + baselineEgfr = new HashSet(); + proteinuria = new HashSet(); + a1c = new HashSet(); + albuminuria = new HashSet(); + diabetesHistory = new HashSet(); + diabetesDuration = new HashSet(); + hypertensionHistory = new HashSet(); + hypertensionDuration = new HashSet(); + onRaasBlockade = new HashSet(); + race = new HashSet(); + redcapId.add(svLink.getId().getRedcapId()); if(shouldAdd(svLink.getAge())){