dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #22523
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10845: [mobile]add system identifier
------------------------------------------------------------
revno: 10845
committer: Long <Long@Long-Laptop>
branch nick: dhis2
timestamp: Wed 2013-05-15 17:18:28 +0700
message:
[mobile]add system identifier
modified:
dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/beneficiaryregistration/action/SaveBeneficiaryAction.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-light/src/main/java/org/hisp/dhis/light/beneficiaryregistration/action/SaveBeneficiaryAction.java'
--- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/beneficiaryregistration/action/SaveBeneficiaryAction.java 2013-05-06 09:24:22 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/beneficiaryregistration/action/SaveBeneficiaryAction.java 2013-05-15 10:18:28 +0000
@@ -480,16 +480,10 @@
String identifier = PatientIdentifierGenerator.getNewIdentifier( patient.getBirthDate(), gender );
PatientIdentifier systemGenerateIdentifier = patientIdentifierService.get( null, identifier );
- while ( systemGenerateIdentifier != null )
- {
- identifier = PatientIdentifierGenerator.getNewIdentifier( patient.getBirthDate(), patient.getGender() );
- systemGenerateIdentifier = patientIdentifierService.get( null, identifier );
- }
-
systemGenerateIdentifier = new PatientIdentifier();
systemGenerateIdentifier.setIdentifier( identifier );
systemGenerateIdentifier.setPatient( patient );
- patient.getIdentifiers().add( systemGenerateIdentifier );
+ patientIdentifierSet.add(systemGenerateIdentifier);
for ( PatientAttribute patientAttribute : patientAttributes )
{