From 468e2d8c7b9d9803d12e29759cecf5adf0444686 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Mon, 11 Nov 2024 09:09:59 -0500 Subject: [PATCH] put in jsonpropery for new fields --- .../SpatialViewerDatasetDisplay.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java b/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java index 29d83e9..7b1c857 100644 --- a/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java +++ b/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java @@ -373,6 +373,7 @@ public void setEnrollmentCategory(Set enrollmentCategory) { this.enrollmentCategory = enrollmentCategory; } + @JsonProperty("primaryadjudicatedcategory") public Set getPrimaryAdjudicatedCategory() { if(primaryAdjudicatedCategory.isEmpty()){ return null; @@ -391,6 +392,7 @@ public void setPrimaryAdjudicatedCategory(Set primaryAdjudicatedCategory this.primaryAdjudicatedCategory = primaryAdjudicatedCategory; } + @JsonProperty("kdigostage") public Set getKdigoStage() { if(kdigoStage.isEmpty()){ return null; @@ -409,6 +411,7 @@ public void setKdigoStage(Set kdigoStage) { this.kdigoStage = kdigoStage; } + @JsonProperty("baselineegfr") public Set getBaselineEgfr() { if(baselineEgfr.isEmpty()){ return null; @@ -427,6 +430,7 @@ public void setBaselineEgfr(Set baselineEgfr) { this.baselineEgfr = baselineEgfr; } + @JsonProperty("proteinuria") public Set getProteinuria() { if(proteinuria.isEmpty()){ return null; @@ -435,7 +439,7 @@ public Set getProteinuria() { } } - public addProteinuria(String proteinuria){ + public void addProteinuria(String proteinuria){ if(this.proteinuria != null && !proteinuria.isEmpty()){ this.proteinuria.add(proteinuria); } @@ -445,6 +449,7 @@ public void setProteinuria(Set proteinuria) { this.proteinuria = proteinuria; } + @JsonProperty("a1c") public Set getA1c() { if(a1c.isEmpty()){ return null; @@ -463,6 +468,7 @@ public void setA1c(Set a1c) { this.a1c = a1c; } + @JsonProperty("albuminuria") public Set getAlbuminuria() { if(albuminuria.isEmpty()){ return null; @@ -481,6 +487,7 @@ public void setAlbuminuria(Set albuminuria) { this.albuminuria = albuminuria; } + @JsonProperty("diabeteshistory") public Set getDiabetesHistory() { if(diabetesHistory.isEmpty()){ return null; @@ -499,6 +506,7 @@ public void setDiabetesHistory(Set diabetesHistory) { this.diabetesHistory = diabetesHistory; } + @JsonProperty("diabetesduration") public Set getDiabetesDuration() { if(this.diabetesDuration.isEmpty()){ return null; @@ -517,6 +525,7 @@ public void setDiabetesDuration(Set diabetesDuration) { this.diabetesDuration = diabetesDuration; } + @JsonProperty("hypertensionhistory") public Set getHypertensionHistory() { if(hypertensionHistory.isEmpty()){ return null; @@ -535,6 +544,7 @@ public void setHypertensionHistory(Set hypertensionHistory) { this.hypertensionHistory = hypertensionHistory; } + @JsonProperty("hypertensionduration") public Set getHypertensionDuration() { if(hypertensionDuration.isEmpty()){ return null; @@ -553,6 +563,7 @@ public void setHypertensionDuration(Set hypertensionDuration) { this.hypertensionDuration = hypertensionDuration; } + @JsonProperty("onraasblockade") public Set getOnRaasBlockade() { if(onRaasBlockade.isEmpty()){ return null; @@ -571,6 +582,7 @@ public void setOnRaasBlockade(Set onRaasBlockade) { this.onRaasBlockade = onRaasBlockade; } + @JsonProperty("ethnicity") public Set getRace() { if(race.isEmpty()){ return null;