diff --git a/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java b/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java index b8f4676..ac4142c 100644 --- a/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java +++ b/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java @@ -249,6 +249,12 @@ public Set getRedcapId() { } } + public void addRedCapId(String redcapId){ + if(redcapId != null && !redcapId.isEmpty()){ + this.redcapId.add(redcapId); + } + } + public void setRedcapId(Set redcapId) { this.redcapId = redcapId; } @@ -262,6 +268,12 @@ public Set getAge() { } } + public void addAge(String age){ + if(age != null && !age.isEmpty()){ + this.age.add(age); + } + } + public void setAge(Set age) { this.age = age; } @@ -275,6 +287,12 @@ public Set getProtocol() { } } + public void addProtocol(String protocol){ + if(protocol != null && !protocol.isEmpty()){ + this.protocol.add(protocol); + } + } + public void setProtocol(Set protocol) { this.protocol = protocol; } @@ -288,6 +306,12 @@ public Set getSampleType() { } } + public void addSampleType(String sampleType){ + if(sampleType != null && !sampleType.isEmpty()){ + this.sampleType.add(sampleType); + } + } + public void setSampleType(Set sampleType) { this.sampleType = sampleType; } @@ -301,6 +325,12 @@ public Set getSex() { } } + public void addSex(String sex){ + if(sex != null && !sex.isEmpty()){ + this.sex.add(sex); + } + } + public void setSex(Set sex) { this.sex = sex; } @@ -314,6 +344,12 @@ public Set getTissueSource() { } } + public void addTissueSource(String tissueSource){ + if(tissueSource != null && tissueSource.isEmpty()){ + this.tissueSource.add(tissueSource); + } + } + public void setTissueSource(Set tissueSource) { this.tissueSource = tissueSource; } @@ -327,6 +363,12 @@ public Set getEnrollmentCategory() { } } + public void addEnrollmentCategory(String enrollmentCategory){ + if(enrollmentCategory != null && !enrollmentCategory.isEmpty()){ + this.enrollmentCategory.add(enrollmentCategory); + } + } + public void setEnrollmentCategory(Set enrollmentCategory) { this.enrollmentCategory = enrollmentCategory; } @@ -339,6 +381,12 @@ public Set getPrimaryAdjudicatedCategory() { } } + public void addPrimaryAdjudicatedCategory(String primaryAdjudicatedCategory){ + if(primaryAdjudicatedCategory != null && !primaryAdjudicatedCategory.isEmpty()){ + this.primaryAdjudicatedCategory.add(primaryAdjudicatedCategory); + } + } + public void setPrimaryAdjudicatedCategory(Set primaryAdjudicatedCategory) { this.primaryAdjudicatedCategory = primaryAdjudicatedCategory; } @@ -351,6 +399,12 @@ public Set getKdigoStage() { } } + public void addKdigoState(String kdigoStage){ + if(kdigoStage != null && kdigoStage.isEmpty()){ + this.kdigoStage.add(kdigoStage); + } + } + public void setKdigoStage(Set kdigoStage) { this.kdigoStage = kdigoStage; }