Changeset 4448
- Timestamp:
- 05/28/08 23:10:39 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/data_synchronization_bidirectional/src/api/org/openmrs/patient/impl/VerhoeffIdentifierValidator.java
r4306 r4448 66 66 throws UnallowedIdentifierException { 67 67 68 boolean result = super.isValid(identifier);69 70 68 if(Character.isDigit(identifier.charAt(identifier.length()-1))) 71 69 throw new UnallowedIdentifierException("Check digit can not be numeric."); 72 70 if(identifier.length() != VERHOEFF_ID_LENGTH) 73 71 throw new UnallowedIdentifierException("Identifier must be " + VERHOEFF_ID_LENGTH + " digits long."); 74 75 return result;72 73 return super.isValid(identifier); 76 74 } 77 75 /**