<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

	<bean id="patientIdentifierCorrelation" class="gov.va.med.cds.idm.client.IdmPersonIdentifierManagement">
		<property name="idmPersonService" ref="idmPersonServiceDelegate" />
		<property name="correspondingIdsRequestXml">
		<value>
			&lt;IDM_REQUEST type='GET_CORRESPONDING_IDS'&gt;
			&lt;METADATA&gt;
			&lt;FIELD name='SENDINGFACILITY' value='200CDS'/&gt;
			&lt;FIELD name='includeHistory' value='true'/&gt;
			&lt;/METADATA&gt;
			&lt;ARGUMENTS&gt;
			&lt;ARGUMENT name='sourceId'&gt;
			&lt;IDENTIFIER type='NI'&gt;
			&lt;ID&gt;%%REPLACE_ICN_VALUE%%&lt;/ID&gt;
			&lt;ISSUER&gt;%%REPLACE_ASSIGINING_AUTHORITY%%&lt;/ISSUER&gt;
			&lt;SOURCE&gt;%%REPLACE_ASSIGINING_FACILITY%%&lt;/SOURCE&gt;
			&lt;/IDENTIFIER&gt;
			&lt;/ARGUMENT&gt;
			&lt;ARGUMENT name='statusList'&gt;
			&lt;VALUE&gt;A&lt;/VALUE&gt;
			&lt;VALUE&gt;H&lt;/VALUE&gt;
			&lt;/ARGUMENT&gt;&lt;/ARGUMENTS&gt;&lt;/IDM_REQUEST&gt;
		</value>
		</property>
	</bean>
	
	<bean id="idmPersonServiceFactory"
		class="gov.va.med.cds.idm.client.IdmPersonServiceFactory"
		lazy-init="true">
		<property name="serviceBindingId" ref="IDM_SVC_ID"/>
		<property name="endpointResolver" ref="endpointResolver"/>
	</bean>
	
	<bean id="idmPersonServiceDelegate" factory-bean="idmPersonServiceFactory" factory-method="create" lazy-init="true">
		<!-- Time out is in milliseconds -->
		<constructor-arg name="idmWebserviceTimeoutSecs" value="10000" />
	</bean>
	    
    
</beans>
	