We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6926fd commit 92828eeCopy full SHA for 92828ee
api/src/main/java/org/bahmni/module/hip/api/dao/impl/ExistingPatientDaoImpl.java
@@ -28,7 +28,7 @@ public String getPatientUuidWithHealthId(String healthId) {
28
String getPatientWithHealthIdQuery = "SELECT p.uuid FROM person AS p INNER JOIN \n" +
29
"\t\t\t\t patient_identifier AS pi ON p.person_id = pi.patient_id \n" +
30
"\t\t\t\t WHERE identifier = :healthId ;";
31
- Query query = this.sessionFactory.openSession().createSQLQuery(getPatientWithHealthIdQuery);
+ Query query = this.sessionFactory.getCurrentSession().createSQLQuery(getPatientWithHealthIdQuery);
32
query.setParameter("healthId", healthId);
33
List<String> patientUuids = query.list();
34
return patientUuids.size() > 0 ? patientUuids.get(0) : null;
0 commit comments