Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
05/21/08 16:28:30 (8 months ago)
Author:
catullus
Message:

Phase 1 of patient validator code (making identifier validation pluggable). See ticekt #296. PatientIdentifierType can now specify an IdentifierValidator that is used to validate identifiers of that type. The old openmrs default check digit validator has been implemented using this methodology as the LuhnIdentifierValidator.

Some functionality has been lost with this commit, namely, auto jumping to patients in patient search no longer works. Additionally, the isValidCheckDigit calculated column will always use LuhnIdentifierValidator as opposed to correctly determining the validator to use.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/metadata/api/spring/applicationContext-service.xml

    r4158 r4301  
    179179        <bean id="patientServiceTarget" class="org.openmrs.api.impl.PatientServiceImpl"> 
    180180                <property name="patientDAO"><ref bean="patientDAO"/></property>  
     181                <property name="identifierValidators"> 
     182                        <map> 
     183                                <entry> 
     184                                        <key><value>org.openmrs.patient.impl.LuhnIdentifierValidator</value></key> 
     185                                        <bean class="org.openmrs.patient.impl.LuhnIdentifierValidator"/> 
     186                                </entry> 
     187                        </map> 
     188                </property> 
    181189        </bean> 
    182190        <bean id="personServiceTarget" class="org.openmrs.api.impl.PersonServiceImpl"> 
     
    305313                </property> 
    306314        </bean> 
     315         
    307316        <bean id="personService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> 
    308317                <property name="transactionManager"><ref local="transactionManager"/></property>