dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27450
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13681: More program patient cleanup
------------------------------------------------------------
revno: 13681
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-01-09 17:51:40 +0100
message:
More program patient cleanup
modified:
dhis-2/dhis-web/dhis-web-sms/src/main/java/org/hisp/dhis/sms/outcoming/SearchPatientAction.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-web/dhis-web-sms/src/main/java/org/hisp/dhis/sms/outcoming/SearchPatientAction.java'
--- dhis-2/dhis-web/dhis-web-sms/src/main/java/org/hisp/dhis/sms/outcoming/SearchPatientAction.java 2014-01-07 15:02:45 +0000
+++ dhis-2/dhis-web/dhis-web-sms/src/main/java/org/hisp/dhis/sms/outcoming/SearchPatientAction.java 2014-01-09 16:51:40 +0000
@@ -28,6 +28,13 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.ouwt.manager.OrganisationUnitSelectionManager;
import org.hisp.dhis.paging.ActionPagingSupport;
@@ -36,17 +43,9 @@
import org.hisp.dhis.patient.PatientService;
import org.hisp.dhis.program.Program;
import org.hisp.dhis.program.ProgramInstance;
-import org.hisp.dhis.program.ProgramPatientIdentifierTypeService;
import org.hisp.dhis.program.ProgramService;
import org.springframework.beans.factory.annotation.Autowired;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-
public class SearchPatientAction
extends ActionPagingSupport<Patient>
{
@@ -63,9 +62,6 @@
@Autowired
private ProgramService programService;
- @Autowired
- private ProgramPatientIdentifierTypeService programPatientIdentifierTypeService;
-
// -------------------------------------------------------------------------
// Input/output
// -------------------------------------------------------------------------
@@ -177,8 +173,7 @@
for ( Integer programId : programIds )
{
Program program = programService.getProgram( programId );
- identifierTypes
- .addAll( programPatientIdentifierTypeService.getListPatientIdentifierType( program ) );
+ identifierTypes.addAll( program.getIdentifierTypes() );
}
}
}