<beans default-lazy-init="false"
    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-3.0.xsd
    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
	
	<!--  DI 1	Device Inventory Report -->
	<bean id="DI1" class="gov.va.med.fw.report.ConfigurableReportBuilder">	
		<constructor-arg ref="DI1.dataService"/>
		<property name="reportNameResolver"> 
			<bean class="gov.va.med.ccht.service.report.StandardReportNameResolver"/>
		</property>				
		<property name="reportDataService" ref="DI1.dataService"/>
		<property name="reportTemplate" ref="DI1.reportTemplate"/>
	</bean>
	
	<util:map id="DI1.Summary.national.metaDataMap">
		<entry key="visn_name"><value type="java.lang.Integer">0</value></entry>
		<entry key="facility_name"><value type="java.lang.Integer">1</value></entry>
		<entry key="vendor_name"><value type="java.lang.Integer">2</value></entry>
		<entry key="model_name"><value type="java.lang.Integer">3</value></entry>
		<entry key="device_count"><value type="java.lang.Integer">4</value></entry>
		<entry key="glevel"><value type="java.lang.Integer">5</value></entry>
	</util:map>
	
	<bean
		id="DI1.dataService"
		class="gov.va.med.fw.report.jasperreport.data.JasperReportDataService">

		<property name="reportDataDAOs">
			<map>
				<entry key="DI1.Summary.national.vendor" value="DI1.Summary.national.vendor.dataDAO"/>
				<entry key="DI1.Summary.national.device" value="DI1.Summary.national.device.dataDAO"/>
				<entry key="DI1.Summary.visn.vendor" value="DI1.Summary.visn.vendor.dataDAO"/>
				<entry key="DI1.Summary.visn.device" value="DI1.Summary.visn.device.dataDAO"/>
				<entry key="DI1.Summary.facility.vendor" value="DI1.Summary.facility.vendor.dataDAO"/>
				<entry key="DI1.Summary.facility.device" value="DI1.Summary.facility.device.dataDAO"/>
			</map>
		</property>
  	
		<property name="metaDataMap">
		    <map>
				<entry key="DI1.Summary.national.vendor" value-ref="DI1.Summary.national.metaDataMap"/>
				<entry key="DI1.Summary.national.device" value-ref="DI1.Summary.national.metaDataMap"/>					
				<entry key="DI1.Summary.visn.vendor" value-ref="DI1.Summary.national.metaDataMap"/>
				<entry key="DI1.Summary.visn.device" value-ref="DI1.Summary.national.metaDataMap"/>					
				<entry key="DI1.Summary.facility.vendor" value-ref="DI1.Summary.national.metaDataMap"/>
				<entry key="DI1.Summary.facility.device" value-ref="DI1.Summary.national.metaDataMap"/>
		    </map>
		</property>
	</bean>
	
	<bean id="DI1.ehCacheStrategy" class="gov.va.med.fw.cache.EHCacheStrategy">
	</bean>

	<bean id="DI1.reportTemplate" class="gov.va.med.fw.report.jasperreport.JasperReportTemplate">
		<property name="templateCache" ref="DI1.ehCacheStrategy"/>
		<property name="templates">
			<map>			
				<entry key="DI1.Summary.national.vendor" value="di1_summary_national_vendor.jasper"/>				
				<entry key="DI1.Summary.national.device" value="di1_summary_national_device.jasper"/>
				<entry key="DI1.Summary.visn.vendor" value="di1_summary_visn_vendor.jasper"/>
				<entry key="DI1.Summary.visn.device" value="di1_summary_visn_device.jasper"/>
				<entry key="DI1.Summary.facility.vendor" value="di1_summary_facility_vendor.jasper"/>
				<entry key="DI1.Summary.facility.device" value="di1_summary_facility_device.jasper"/>				
			</map>
		</property>
	</bean>
	
	<bean id="DI1.Summary.xls" abstract="true">
		<property name="footNotes">
			<list>
				<value>* 'Not Reported' indicates that a patient did not have a Device during the reporting period (i.e. disenrolled this week, not yet issued, etc.) or that the Vendor did not report a Device Model for a patient.</value>				
			</list>
		</property>
		<property name="summaryRowCells"> 
			<map>   
				<entry key="vendor_name" value-ref="summaryReportTotal"/>
				<entry key="device_count" value-ref="summaryReportFormauale"/>
			</map>
		</property>		
	</bean>
	
	<bean id="DI1.Summary.national.vendor.xls" class="gov.va.med.fw.report.excelreport.ExcelReport" parent="DI1.Summary.xls">
		<property name="reportTitle" value="National Summary By Vendor"/>
	</bean>
	<bean id="DI1.Summary.national.device.xls" class="gov.va.med.fw.report.excelreport.ExcelReport" parent="DI1.Summary.xls">
		<property name="reportTitle" value="National Summary By Device Model"/>
	</bean>		
	<bean id="DI1.Summary.visn.vendor.xls" class="gov.va.med.fw.report.excelreport.ExcelReport" parent="DI1.Summary.xls">
		<property name="reportTitle" value="VISN Summary By Vendor"/>
	</bean>
	<bean id="DI1.Summary.visn.device.xls" class="gov.va.med.fw.report.excelreport.ExcelReport" parent="DI1.Summary.xls">
		<property name="reportTitle" value="VISN Summary By Device Model"/>
	</bean>		
	<bean id="DI1.Summary.facility.vendor.xls" class="gov.va.med.fw.report.excelreport.ExcelReport" parent="DI1.Summary.xls">
		<property name="reportTitle" value="Facility Summary By Vendor"/>
	</bean>
	<bean id="DI1.Summary.facility.device.xls" class="gov.va.med.fw.report.excelreport.ExcelReport" parent="DI1.Summary.xls">
		<property name="reportTitle" value="Facility Summary By Device Model"/>
	</bean>			

	
	<bean id="DI1.dataDAO.abstract" abstract="true"
		class="gov.va.med.ccht.persistent.hibernate.StandardReportDataDAOImpl">
		<property name="postProcessRequired" value="false"/>
		<property name="paginated" value="false"/>
		<property name="queryName" value="di1_summary_visn_vendor"/>
	</bean>
	<bean id="DI1.Summary.national.vendor.dataDAO" parent="DI1.dataDAO.abstract">
		<property name="queryName" value="di1_summary_national_vendor"/>
	</bean>	
	<bean id="DI1.Summary.national.device.dataDAO" parent="DI1.dataDAO.abstract">
		<property name="queryName" value="di1_summary_national_device"/>
	</bean>
	<bean id="DI1.Summary.visn.vendor.dataDAO" parent="DI1.dataDAO.abstract">
		<property name="queryName" value="di1_summary_visn_vendor"/>
	</bean>	
	<bean id="DI1.Summary.visn.device.dataDAO" parent="DI1.dataDAO.abstract">
		<property name="queryName" value="di1_summary_visn_device"/>
	</bean>
	<bean id="DI1.Summary.facility.vendor.dataDAO" parent="DI1.dataDAO.abstract">
		<property name="queryName" value="di1_summary_facility_vendor"/>
	</bean>	
	<bean id="DI1.Summary.facility.device.dataDAO" parent="DI1.dataDAO.abstract">
		<property name="queryName" value="di1_summary_facility_device"/>
	</bean>		
</beans>



