<?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 id="vdmClinicalDataBuilder"
		class="gov.va.med.cds.vdm.vhim400.clinicaldata.VdmClinicalDataBuilder">
		<!--  <property name="templateManager" ref="templateMetaDataProvider" /> -->
		<property name="templateManager" ref="templateManager" />
		<property name="domainEntryPointsWrappersMap">
			<map>
				<entry key="AllergyAssessment" value-ref="vdmAllergyAssessmentBuilderFactory" />
				<entry key="IntoleranceCondition" value-ref="vdmIntoleranceConditionBuilderFactory" />
				<entry key="OutpatientMedicationPromise" value-ref="vdmOutpatientMedicationPromiseBuilderFactory" />
				<entry key="VitalSignObservationEvent" value-ref="vdmVitalsBuilderFactory" />
				<entry key="LabTestPromise" value-ref="vdmLabBuilderFactory" />
				<entry key="ClinicalDocumentEvent"  value-ref ="vdmTiuBuilderFactory" />
			</map>
		</property>
	</bean>

	<bean id="vdmAllergyAssessmentBuilderFactory"
		class="gov.va.med.cds.vdm.vhim400.clinicaldata.VdmAllergyAssessmentBuilderFactory">
		<property name="vdmAllergyAssessmentBuilder">
			<bean class="gov.va.med.cds.vdm.vhim400.allergies.VdmAllergyAssessmentBuilder" />
		</property>
	</bean>

	<bean id="vdmIntoleranceConditionBuilderFactory"
		class="gov.va.med.cds.vdm.vhim400.clinicaldata.VdmIntoleranceConditionBuilderFactory">
		<property name="vdmIntoleranceConditionBuilder">
			<bean class="gov.va.med.cds.vdm.vhim400.allergies.VdmIntoleranceConditionBuilder" />
		</property>
	</bean>

	<bean id="vdmLabBuilderFactory"
		class="gov.va.med.cds.vdm.vhim400.clinicaldata.VdmLabBuilderFactory">
		<property name="vdmLabBuilder">
			<bean class="gov.va.med.cds.vdm.vhim400.lab.VdmLabBuilder" />
		</property>
	</bean>

	<bean id="vdmOutpatientMedicationPromiseBuilderFactory" 
		class="gov.va.med.cds.vdm.vhim400.clinicaldata.VdmOutpatientMedicationPromiseBuilderFactory">
		<property name="vdmOutpatientMedicationPromiseBuilder">
			<bean class="gov.va.med.cds.vdm.vhim400.pharmacy.VdmOutpatientMedicationPromiseBuilder" />
		</property>
	</bean>

	<bean id="vdmVitalsBuilderFactory" 
		class="gov.va.med.cds.vdm.vhim400.clinicaldata.VdmVitalSignObservationEventBuilderFactory">
		<property name="vdmVitalSignObservationEventBuilder">
			<bean class="gov.va.med.cds.vdm.vhim400.vitalsigns.VdmVitalsBuilder" />
		</property>
	</bean>

	<bean id="vdmTiuBuilderFactory" 
		class="gov.va.med.cds.vdm.vhim400.clinicaldata.VdmClinicalDocumentEventBuilderFactory">
		<property name="vdmTiuBuilder">
			<bean class="gov.va.med.cds.vdm.vhim400.tiu.VdmTiuBuilder"/>
		</property>
	</bean>
	
	<alias name="vdmClinicalDataBuilder"
		alias="vdmClinicalDataBuilder400" />

	<bean id="errorSectionChecker"
		class="gov.va.med.cds.vdm.vhim400.integration.ErrorSectionChecker" />

	<alias name="errorSectionChecker" alias="errorSectionChecker400" />
	
	<import resource="classpath:gov/va/med/cds/idm/client/stub/idmPersonIdentifierManagementStubContext.xml"/>
	
</beans>