From b466db304ffd247a84906a5087538ed256db7e47 Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T Date: Mon, 22 Jul 2024 15:07:59 +0530 Subject: [PATCH] BAH-4029 | Fix. Class Cast exception by using getConceptNumeric --- .../bahmniemrapi/laborder/mapper/LabOrderResultMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bahmni-emr-api/src/main/java/org/openmrs/module/bahmniemrapi/laborder/mapper/LabOrderResultMapper.java b/bahmni-emr-api/src/main/java/org/openmrs/module/bahmniemrapi/laborder/mapper/LabOrderResultMapper.java index 44526a9f3..98683a29f 100644 --- a/bahmni-emr-api/src/main/java/org/openmrs/module/bahmniemrapi/laborder/mapper/LabOrderResultMapper.java +++ b/bahmni-emr-api/src/main/java/org/openmrs/module/bahmniemrapi/laborder/mapper/LabOrderResultMapper.java @@ -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)); }