- Timestamp:
- 07/16/08 12:29:31 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/1.3.x/src/api/org/openmrs/api/impl/PatientServiceImpl.java
r4632 r4947 209 209 // TODO: check patient has at least one "sufficient" identifier 210 210 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())) { 213 213 patient.removeIdentifier(pi); 214 214 throw new DuplicateIdentifierException("This patient has two identical identifiers of type " … … 220 220 pi); 221 221 } 222 223 else224 identifiersUsed.add(pi.getIdentifier());222 else { 223 identifiersUsed.add(pi.getIdentifier() + " id type #: " + pi.getIdentifierType().getPatientIdentifierTypeId()); 224 } 225 225 } 226 226