Skip to content

Commit

Permalink
Merge pull request #637 from mozzy11/2.8
Browse files Browse the repository at this point in the history
Fix patient history
  • Loading branch information
mozzy11 authored Dec 7, 2023
2 parents 50a6f20 + 46f87c6 commit c5f5941
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ public List<ResultTree> getResultTreeArray(@RequestParam String patientId) {
resultType = testService.getResultType(result.getTestResult().getTest());
}
resultDisplay.setValue("");
if (resultType.equals("N")) {
resultDisplay.setValue(result.getValue() != null ? result.getValue(true) : "");
} else if (resultType.equals("D")) {
if (resultType.equals("N") || resultType.equals("A") || resultType.equals("R")) {
resultDisplay.setValue(result.getValue() != null ? result.getValue() : "");
} else if (resultType.equals("D")|| resultType.equals("M") || resultType.equals("C")) {
if (result.getValue() != null && StringUtils.isNumeric(result.getValue())) {
Dictionary dict = dictionaryService.get(result.getValue());
if (dict != null) {
Expand Down

0 comments on commit c5f5941

Please sign in to comment.