Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/16/08 12:29:31 (6 months ago)
Author:
bwolfe
Message:

Merging trunk to the 1.3.x branch (sideporting) to get bug fixes into an RC5 release [4745]:[4946]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/1.3.x/src/api/org/openmrs/api/impl/PatientServiceImpl.java

    r4632 r4947  
    209209                        // TODO: check patient has at least one "sufficient" identifier 
    210210 
    211                         // check this patient for duplicate identifiers 
    212                         if (identifiersUsed.contains(pi.getIdentifier())) { 
     211                        // check this patient for duplicate identifiers+identifierType 
     212                        if (identifiersUsed.contains(pi.getIdentifier() + " id type #: " + pi.getIdentifierType().getPatientIdentifierTypeId())) { 
    213213                                patient.removeIdentifier(pi); 
    214214                                throw new DuplicateIdentifierException("This patient has two identical identifiers of type " 
     
    220220                                                                       pi); 
    221221                        } 
    222                          
    223                         else 
    224                                identifiersUsed.add(pi.getIdentifier()); 
     222                        else { 
     223                               identifiersUsed.add(pi.getIdentifier() + " id type #: " + pi.getIdentifierType().getPatientIdentifierTypeId()); 
     224                        } 
    225225                } 
    226226