Skip to content

Commit

Permalink
BAH-4029 | Fix. Class Cast exception by using getConceptNumeric
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 committed Jul 22, 2024
1 parent c53f6f7 commit b466db3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void checkResultRangesForAbsolutes(Obs obs, String accessionUuid) {
return;
}
if (obs.getValueNumeric() != null) {
ConceptNumeric cn = (ConceptNumeric) obs.getConcept();
ConceptNumeric cn = conceptService.getConceptNumeric(obs.getConcept().getId());
if (cn.getHiAbsolute() != null && cn.getHiAbsolute() < obs.getValueNumeric()) {
log.error(String.format("Test results for [%s] is beyond the absolute high range, in Accession [%s]", cn.getName(), accessionUuid));
}
Expand Down

0 comments on commit b466db3

Please sign in to comment.