From 53fccf7220a8915612b9bc9ae21cbe00d2a10b61 Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T <31698165+mohan-13@users.noreply.github.com> Date: Thu, 8 Aug 2024 08:55:28 +0530 Subject: [PATCH] BAH-4065 | Fix. Get Concept by FSN should return only unretired concepts (#274) --- .../bahmni/module/bahmnicore/dao/impl/BahmniConceptDaoImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bahmnicore-api/src/main/java/org/bahmni/module/bahmnicore/dao/impl/BahmniConceptDaoImpl.java b/bahmnicore-api/src/main/java/org/bahmni/module/bahmnicore/dao/impl/BahmniConceptDaoImpl.java index 53ceb496b..77ec81ff4 100644 --- a/bahmnicore-api/src/main/java/org/bahmni/module/bahmnicore/dao/impl/BahmniConceptDaoImpl.java +++ b/bahmnicore-api/src/main/java/org/bahmni/module/bahmnicore/dao/impl/BahmniConceptDaoImpl.java @@ -98,6 +98,7 @@ public List getConceptsByFullySpecifiedName(List conceptNames) .createQuery("select concept " + "from ConceptName as conceptName " + "where conceptName.conceptNameType ='FULLY_SPECIFIED' and conceptName.voided = false" + + " and conceptName.concept.retired = false" + " and lower(conceptName.name) in (:conceptNames)").setParameterList("conceptNames", lowerCaseConceptNames).list(); return concepts; }