Skip to content

Commit

Permalink
Merge pull request #1233 from CalebSLane/develop
Browse files Browse the repository at this point in the history
fix broken reflexes for dictionary
  • Loading branch information
CalebSLane authored Aug 13, 2024
2 parents c577e8c + 2cbd585 commit 8053b98
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,13 @@ private List<TestReflex> getReflexTests(TestReflexBean reflexBean) {
if (reflexBean.getResult().getTestResult() == null) {
return new ArrayList<>();
}
List<TestReflex> reflexesForResult = reflexResolver.getTestReflexesForResult(reflexBean.getResult());
String resultType = testService.getResultType(reflexBean.getResult().getTestResult().getTest());
List<TestReflex> reflexesForResult;
if (resultType.equals("D")) {
reflexesForResult = reflexResolver.getTestReflexsByAnalyteAndTest(reflexBean.getResult());
} else {
reflexesForResult = reflexResolver.getTestReflexesForResult(reflexBean.getResult());
}
reflexesForResult = reflexesForResult.stream()
.filter(e -> isTestTriggeredByResult(e.getAddedTest(), reflexBean.getResult()))
.collect(Collectors.toList());
Expand Down Expand Up @@ -876,6 +882,7 @@ public boolean doesDictionaryRelationRulesForReflexApply(Test potentialReflexTes
}
}
}

return false;

});
Expand Down

0 comments on commit 8053b98

Please sign in to comment.