Skip to content

Commit

Permalink
BAH-3606 | Add. panelName property in tabularResult (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
parvathy00 authored Feb 29, 2024
1 parent 414cc29 commit 0947dbe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private TabularLabOrderResults tabulate() {
dateMap.put(orderDate, new TabularLabOrderResults.DateLabel(dateLabelIndexCounter++, orderDate.toString("dd-MMM-yyyy")));
}
if(orderMap.get(result.getTestName()) == null) {
orderMap.put(result.getTestName(), new TabularLabOrderResults.TestOrderLabel(testOrderLabelCounter++, result.getTestName(), result.getMinNormal(), result.getMaxNormal(), result.getTestUnitOfMeasurement()));
orderMap.put(result.getTestName(), new TabularLabOrderResults.TestOrderLabel(testOrderLabelCounter++, result.getTestName(), result.getMinNormal(), result.getMaxNormal(), result.getTestUnitOfMeasurement(), result.getPanelName()));
}

if(result.getResult() != null || result.getReferredOut() || result.getUploadedFileName() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,21 @@ public static class TestOrderLabel {
private Double minNormal;
private Double maxNormal;
private String testUnitOfMeasurement;
private String panelName;

@JsonCreator
public TestOrderLabel(@JsonProperty("index")Integer index,
@JsonProperty("testName")String testName,
@JsonProperty("minNormal")Double minNormal,
@JsonProperty("maxNormal")Double maxNormal,
@JsonProperty("testUnitOfMeasurement")String testUnitOfMeasurement) {
@JsonProperty("testUnitOfMeasurement")String testUnitOfMeasurement,
@JsonProperty("panelName")String panelName) {
this.index = index;
this.testName = testName;
this.minNormal = minNormal;
this.maxNormal = maxNormal;
this.testUnitOfMeasurement = testUnitOfMeasurement;
this.panelName = panelName;
}

public Integer getIndex() {
Expand Down Expand Up @@ -108,8 +111,15 @@ public String getTestUnitOfMeasurement() {
public void setTestUnitOfMeasurement(String testUnitOfMeasurement) {
this.testUnitOfMeasurement = testUnitOfMeasurement;
}
}

public String getPanelName() {
return panelName;
}

public void setPanelName(String panelName) {
this.panelName = panelName;
}
}

public static class CoordinateValue {
private Date accessionDateTime;
Expand Down

0 comments on commit 0947dbe

Please sign in to comment.