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

	<bean name="vhimRequestAuditLogger" class="gov.va.med.cds.audit.VhimRequestAuditLogger">
		<property name="auditLogPersistenceManager" ref="auditLogPersistenceManager" />
		<property name="cdsAuditClobStore" ref="cdsAuditClobStore" />
		<property name="sendingFacilityStartElement" value="&lt;recordSource&gt;&lt;namespaceId&gt;" />
		<property name="sendingFacilityEndElement" value="&lt;/namespaceId&gt;" />
		<property name="messageDateTimeStartElement" value="&lt;recordUpdateTime&gt;&lt;literal&gt;" />
		<property name="messageDateTimeEndElement" value="&lt;/literal&gt;&lt;/recordUpdateTime&gt;" />
		<property name="cdsAppName" ref="cdsAppName" />
		<!-- <property name="haTemplateIdList" ref="haTemplateIdList"/> -->
		<property name="pathwaysCreateTemplateIdList" ref="pathwaysCreateTemplateIdList"/>
		<property name="readAuditFactory" ref="readAuditFactory"/>
		<property name="vhimWriteClientSendingFacilityIdList" ref="vhimWriteClientSendingFacilityIdList"/>
	</bean>
	
	<bean name="vhimRequestPathwaysAuditLogger" class="gov.va.med.cds.audit.VhimRequestAuditLogger">
		<property name="auditLogPersistenceManager" ref="rpcAuditLogPersistenceManager" />
		<property name="cdsAppName" ref="pathwaysAppName" />
		<property name="readAuditFactory" ref="readAuditFactory"/>
	</bean>
		
	<bean name="cdsVimReadAuditFactory" class="gov.va.med.cds.audit.CdsVimReadAuditFactory"/>
	<bean name="pathwaysReadAuditFactory" class="gov.va.med.cds.audit.PathwaysVimReadAuditFactory"/>
	
	<bean name="readAuditFactory" class="gov.va.med.cds.audit.ReadAuditFactory">
		<property name="filterToReadAuditFactoryMap">
			<map>
				<!-- CDS Filters -->	
				<entry key="AA_SINGLE_PATIENT_ALL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="ALLERGY_SINGLE_PATIENT_ALL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="CHDR_ALLERGY_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="CHDR_ALLERGY_SINGLE_PATIENT_FILTER_TEST" value-ref="cdsVimReadAuditFactory"/>
				<entry key="CHDR_LAB_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="CHDR_LAB_SINGLE_PATIENT_FILTER_TEST" value-ref="cdsVimReadAuditFactory"/>
				<entry key="CHDR_RX_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="CHDR_RX_SINGLE_PATIENT_FILTER_TEST" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_DETAIL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_DETAIL_DATA_FILTER2" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_LIST_DATA_COUNT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_LIST_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_SINGLE_PATIENT_LIST_DATA_COUNT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_SINGLE_PATIENT_LIST_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_MULTI_SELECT_LIST_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_SINGLE_PATIENT_XML_DATA_COUNT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_SINGLE_PATIENT_XML_DATA_COUNT_FILTER2" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_SINGLE_PATIENT_XML_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="DBQ_SINGLE_PATIENT_XML_DATA_FILTER2" value-ref="cdsVimReadAuditFactory"/>
				<entry key="Filter100" value-ref="cdsVimReadAuditFactory"/>
				<!-- 
				<entry key="HEALTH_ADAPTER_ASSESSMENT_DOCUMENT_DETAIL_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="HEALTH_ADAPTER_JOURNAL_DETAIL_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="HEALTH_ADAPTER_SINGLE_PATIENT_ALL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/> 
				-->
				<entry key="IC_SINGLE_PATIENT_ALL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="IMMUNIZATION_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="LAB_SINGLE_PATIENT_ALL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="MHV_VITAL_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="NONVAMED_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="PROBLEMLIST_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="RDI_ALLERGY_RX_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="RDI_IC_RX_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="RX_SINGLE_PATIENT_ALL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="RX_SINGLE_PATIENT_SINGLE_RECORD_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="SKINTEST_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="SMART_FORM_ALL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="SMART_FORM_SINGLE_PATIENT_ALL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="TIU_SINGLE_PATIENT_DETAIL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="TIU_SINGLE_PATIENT_LIST_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="VITAL_SINGLE_PATIENT_ALL_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="VW_ALLERGY_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="VW_IC_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="VW_VITAL_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="GENERIC_VISTA_LIST_DATA_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="PGD_SINGLE_PATIENT_FILTER" value-ref="cdsVimReadAuditFactory"/>
				<entry key="PGD_UNIQUE_ID_FILTER" value-ref="cdsVimReadAuditFactory"/>
				
				<!-- Pathways -->
				<entry key="APPOINTMENTS_SINGLE_PATIENT_FILTER" value-ref="pathwaysReadAuditFactory"/>
				<entry key="REQUESTS_AND_EXAMS_SINGLE_PATIENT_FILTER" value-ref="pathwaysReadAuditFactory"/>
				<entry key="RELEASEOFINFORMATION_SINGLE_PATIENT_FILTER" value-ref="pathwaysReadAuditFactory"/>
				<entry key="DEMOGRAPHICS_SINGLE_PATIENT_FILTER" value-ref="pathwaysReadAuditFactory"/>
				<entry key="PATIENTALERT_SINGLE_PATIENT_LIST_FILTER" value-ref="pathwaysReadAuditFactory"/>
				<entry key="PATIENTALERT_SINGLE_PATIENT_DETAIL_FILTER" value-ref="pathwaysReadAuditFactory"/>
				<entry key="CLINICALREMINDER_SINGLE_PATIENT_FILTER" value-ref="pathwaysReadAuditFactory"/>
				<entry key="APPOINTMENT_LETTER_SINGLE_PATIENT_FILTER" value-ref="pathwaysReadAuditFactory" />
				<entry key="FTP_VISTA_USER_FILTER" value-ref="pathwaysReadAuditFactory"/>
			</map>
		</property>
	</bean>
	
	<util:list id="pathwaysCreateTemplateIdList">
		<value>SensitivePatientAccessCreate1</value>
	</util:list>
	<!-- 
	<util:list id="haTemplateIdList">
	   <value>HealthAdapterRead1</value>
       <value>HealthAdapterCreate1</value>
       <value>HealthAdapterUpdate1</value>
       <value>HealthAdapterDelete1</value>
       <value>HealthAdapterAssessmentDocumentDetailRead1</value>
       <value>HealthAdapterJournalDetailRead1</value>
	</util:list> 
	-->
	
	<!-- CHDR is currently our only VHIM write client -->
	<util:list id="vhimWriteClientSendingFacilityIdList">
		<value>200CH</value>
	</util:list>
	
	
</beans>