dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19211
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8284: Donnot list events of persons who have attribute-value belongs to the selected program.
------------------------------------------------------------
revno: 8284
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-09-27 15:56:59 +0700
message:
Donnot list events of persons who have attribute-value belongs to the selected program.
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java 2012-09-27 08:00:40 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java 2012-09-27 08:56:59 +0000
@@ -525,7 +525,8 @@
String subSQL = " ,MIN( psi.programstageinstanceid ) as programstageinstanceid, min(pgs.name) as programstagename, min(psi.duedate) as duedate ";
sql = sql + subSQL + from + " inner join programinstance pgi on " + " (pgi.patientid=p.patientid) "
+ " inner join programstageinstance psi on " + " (psi.programinstanceid=pgi.programinstanceid) "
- + " inner join programstage pgs on (pgs.programstageid=psi.programstageid)";
+ + " inner join programstage pgs on (pgs.programstageid=psi.programstageid) "
+ + " inner join patientattributevalue pav on p.patientid=pav.patientid ";
orderBy = " ORDER BY duedate DESC ";
from = " ";
}