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

	<util:map id="hdr2ReadableSessionFactoryMap">
		<!-- Assessment  -->
		<entry key="AllergyAssessmentRead40010" value-ref="hdr2AllergiesReadableSessionFactory" />
		<entry key="AllergyAssessmentVdmBuilderStringRead40019" value-ref="hdr2AllergiesReadableSessionFactory" />
		<!-- MIXED Assessment&Allergy  -->
		<entry key="AllergiesRead40010" value-ref="hdr2AllergiesReadableSessionFactory" />
		<entry key="VWAllergiesRead40010" value-ref="hdr2AllergiesReadableSessionFactory" />
		<!-- Allergy  -->
		<entry key="IntoleranceConditionRead40010" value-ref="hdr2IntoleranceConditionReadableSessionFactory" />
		<entry key="IntoleranceConditionReducedRead40011" value-ref="hdr2IntoleranceConditionReadableSessionFactory" />
		<entry key="VWIntoleranceConditionRead40010" value-ref="hdr2IntoleranceConditionReadableSessionFactory" />
		<entry key="MHVIntoleranceConditionRead40011" value-ref="hdr2IntoleranceConditionReadableSessionFactory" />
		<!-- Lab  -->
		<entry key="MHVLabRead40011" value-ref="hdr2MhvLabRead40011ReadableSessionFactory"/>
		<!-- Vitals  -->
		<entry key="VitalsignsRead40010" value-ref="hdr2VitalsignsReadableSessionFactory" />
		<entry key="MHVVitalsignsRead40010" value-ref="hdr2MHVVitalsignsReadableSessionFactory" />
		<entry key="VWVitalsignsRead40010" value-ref="hdr2VWVitalsignsReadableSessionFactory" />
		<!-- Pharmacy  -->
		<entry key="PharmacyRead40010" value-ref="hdr2Pharmacy40010ReadableSessionFactory" />
		<entry key="VWPharmacyDetailRead40010" value-ref="hdr2VWPharmacyDetail40010ReadableSessionFactory" />
		<entry key="VWPharmacyRead40010" value-ref="hdr2VWPharmacy40010ReadableSessionFactory" />
		<entry key="OutpatientPharmacyRead1" value-ref="hdr2OutpatientPharmacyReadableSessionFactory" />
		<entry key="VWOutpatientPharmacyDetailRead1" value-ref="hdr2VWOutpatientPharmacyDetailReadableSessionFactory" />
		<entry key="VWOutpatientPharmacyRead1" value-ref="hdr2VWOutpatientPharmacyReadableSessionFactory" />
		<!-- MIXED Allergy&Pharmacy  -->
		<!-- this first one -IntoleranceConditionPharmacyRead40010- is NOT really mixed as the pharmacy hbm files are/were commented OUT - contains only IntoleranceCondition mappings-->
		<entry key="IntoleranceConditionPharmacyRead40010" value-ref="hdr2IntoleranceConditionReadableSessionFactory" />	
		<entry key="RDIIntoleranceConditionPharmacyRead40010" value-ref="hdr2RdiIntoleranceConditionOutpatientMedicationPromise40010ReadableSessionFactory" />
		<entry key="RDIIntoleranceConditionPharmacyRead40011" value-ref="hdr2RdiIntoleranceConditionOutpatientMedicationPromise40011ReadableSessionFactory" /> 
		<entry key="RDIIntoleranceConditionPharmacyRead40012" value-ref="hdr2RdiIntoleranceConditionOutpatientMedicationPromise40012ReadableSessionFactory" />
		<entry key="RDIAllergiesPharmacyRead40013" value-ref="hdr2RdiIntoleranceConditionOutpatientMedicationPromise40013ReadableSessionFactory" />		
		<!-- PGD  -->
		<entry key="PGDRead1" value-ref="hdr2PGDReadableSessionFactory" />
		
	</util:map>
	
	<util:map id="hdr2WritableSessionFactoryMap">
		<entry key="AllergyAssessmentCreateOrUpdate40060" value-ref="hdr2AllergiesWritableSessionFactory" />
		<entry key="IntoleranceConditionCreateOrUpdate40060" value-ref="hdr2IntoleranceConditionWritableSessionFactory" />
		<!-- <entry key="IntoleranceConditionDelete40030" value-ref="hdr2IntoleranceConditionWritableSessionFactory" /> -->
		<!-- <entry key="VitalsignsCreate40020" value-ref="hdr2VitalsignsWritableSessionFactory" /> -->
		<entry key="VitalsignsCreateOrUpdate40060" value-ref="hdr2VitalsignsWritableSessionFactory" />
		<!-- <entry key="VitalsignsDelete40030" value-ref="hdr2VitalsignsWritableSessionFactory" /> -->
		<entry key="PharmacyCreateOrUpdate40060" value-ref="hdr2OutpatientPharmacyWritableSessionFactory" />
		<entry key="LabCreateOrUpdate40060" value-ref="hdr2LabWritableSessionFactory" />
		
		<!-- <entry key="PSSurveyCreate40021" value-ref="hdr2PSSurveyWritableSessionFactory" />
		<entry key="PSSurveyCreate40022" value-ref="hdr2PSSurveyWritableSessionFactory" />-->
		<!-- Patient Satisfaction v 1.0-->
		<entry key="PSSurveyCreate40023" value-ref="hdr2PSSurveyWritableSessionFactory" /> 
		<!-- <entry key="PSSurveyCreate40024" value-ref="hdr2PSSurveyWritableSessionFactory" />-->
		<!-- Patient Satisfaction v 2.0-->
		<entry key="PSSurveyCreate40025" value-ref="hdr2PSSurveyWritableSessionFactory" />
		<!-- <entry key="ADLSurveyCreate40021" value-ref="hdr2ADLSurveyWritableSessionFactory" /> -->
		<entry key="ADLSurveyCreate40024" value-ref="hdr2ADLSurveyWritableSessionFactory" />
		<!-- <entry key="DMPSurveyCreate40020" value-ref="hdr2DMPSurveyWritableSessionFactory" />
		<entry key="DMPSurveyCreate40021" value-ref="hdr2DMPSurveyWritableSessionFactory" /> -->
		<entry key="DMPSurveyCreate40024" value-ref="hdr2DMPSurveyWritableSessionFactory" />
		<entry key="CensusSurveyCreate40024" value-ref="hdr2CensusSurveyWritableSessionFactory" />
		
		<entry key="PGDCreateOrUpdate1" value-ref="hdr2PGDWriteableSessionFactory" />
		<entry key="PGDDelete1" value-ref="hdr2PGDDeleteSessionFactory" />
	</util:map>

	<bean abstract="true" id="abstractHdrHibernateProperties" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
		<property name="hibernateProperties">
			<props>
				<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
				<!-- <prop key="hibernate.default_entity_mode">dom4j</prop> -->
				<prop key="hibernate.show_sql">${hibernate.show.sql}</prop>
				<prop key="hibernate.jdbc.batch_size">100</prop>
				<prop key="hibernate.order_inserts">true</prop>
				<prop key="hibernate.query.plan_cache_max_strong_references">${hibernate.query.plan_cache_max_strong_references.size}</prop>
				<prop key="hibernate.query.plan_cache_max_soft_references">${hibernate.query.plan_cache_max_soft_references.size}</prop>
				<prop key="hibernate.statement_cache.size">${hibernate.statement_cache.size}</prop>
				<prop key="hibernate.prepare_sql">${hibernate.prepare_sql}</prop>
			</props>
		</property>
	</bean>
	
	<bean abstract="true" id="abstractHdrHibernatePropertiesPojo" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
		<property name="hibernateProperties">
			<props>
				<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
				<prop key="hibernate.show_sql">${hibernate.show.sql}</prop>
				<prop key="hibernate.jdbc.batch_size">100</prop>
				<!--  <prop key="hibernate.order_inserts">true</prop> -->
				<prop key="hibernate.query.plan_cache_max_strong_references">${hibernate.query.plan_cache_max_strong_references.size}</prop>
				<prop key="hibernate.query.plan_cache_max_soft_references">${hibernate.query.plan_cache_max_soft_references.size}</prop>
				<prop key="hibernate.statement_cache.size">${hibernate.statement_cache.size}</prop>
				<prop key="hibernate.prepare_sql">${hibernate.prepare_sql}</prop>
			</props>
		</property>
	</bean>
	
	<bean abstract="true" id="abstractHdrHibernatePropertiesPojoDEBUG" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
		<property name="hibernateProperties">
			<props>
				<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
				<prop key="hibernate.show_sql">true</prop>
				<prop key="hibernate.jdbc.batch_size">100</prop>
				<!--  <prop key="hibernate.order_inserts">true</prop> -->
				<prop key="hibernate.query.plan_cache_max_strong_references">${hibernate.query.plan_cache_max_strong_references.size}</prop>
				<prop key="hibernate.query.plan_cache_max_soft_references">${hibernate.query.plan_cache_max_soft_references.size}</prop>
				<prop key="hibernate.statement_cache.size">${hibernate.statement_cache.size}</prop>
				<prop key="hibernate.prepare_sql">${hibernate.prepare_sql}</prop>
			</props>
		</property>
	</bean>
	
	<bean id="hdr2ADLSurveyWritableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- SurveyCreate -->
				<value>gov/va/med/cds/persistence/hibernate/survey/SurveyPatient.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CareCoordinator.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/Facility.hbm.xml</value>
	<!-- 			<value>gov/va/med/cds/persistence/hibernate/survey/ADLSurveyCreate40021.hbm.xml</value> -->
				<value>gov/va/med/cds/persistence/hibernate/survey/ADLSurveyCreate40024.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/Vendor.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/Survey.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/SurveyQuestion.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/SurveyChoice.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/SurveyQuestionAnswer.hbm.xml</value>
				<!-- 
				 -->
			</list>
		</property>
	</bean>
	
	<bean id="hdr2PSSurveyWritableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- SurveyCreate -->
				<value>gov/va/med/cds/persistence/hibernate/survey/SurveyPatient.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CareCoordinator.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/Facility.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/PSSurveyCreate40025.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/Vendor.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/Survey.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/SurveyQuestion.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/SurveyChoice.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/SurveyQuestionAnswer.hbm.xml</value>
				<!-- 
				 -->
			</list>
		</property>
	</bean>
	
	<bean id="hdr2DMPSurveyWritableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- DMP SurveyCreate -->
				<value>gov/va/med/cds/persistence/hibernate/survey/SurveyPatient.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/Vendor.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/Facility.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/DMPSurveyResponse40024.hbm.xml</value>
				<!-- <value>gov/va/med/cds/persistence/hibernate/survey/DMPSurveyResponse.hbm.xml</value> -->
			</list>
		</property>
	</bean>
	
	<bean id="hdr2CensusSurveyWritableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- Census SurveyCreate -->
				<!-- Following is for the single-table solution -->
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusCreate.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusMasterIngest.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusMasterSegment.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusVendor.hbm.xml</value>
				
				<!-- Following is for the multi-table relational solution -->
				<!--  
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusSurveyCreate40024.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusPatient.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusCareCoordinator.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusFacility.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusVendor.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusSurvey.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusModality.hbm.xml</value>		 
				<value>gov/va/med/cds/persistence/hibernate/survey/CensusModalityResponse.hbm.xml</value>
				-->
			</list>
		</property>
	</bean>
	
	<bean id="hdr2AllergiesReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- AllergiesRead40010 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergiesRead40010AA.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergiesRead40010IC.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyPractitionerParticipationChartMarker.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyPractitionerParticipationIdBandMarker.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/Reaction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugClass.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugIngredient.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyComment.hbm.xml</value>

				<!-- AllergyAssessmentRead40010 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyAssessmentRead40010.hbm.xml</value>

				<!-- AllergyAssessmentVdmBuilderStringRead40019 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyAssessmentVdmBuilderStringRead40019.hbm.xml</value>

				<!-- VWAllergiesRead40010 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/VWAllergiesRead40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/VWAllergiesRead40010_IntoleranceCondition.hbm.xml</value>

			</list>
		</property>
	</bean>
	
	<bean id="hdr2AllergiesWritableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- AllergyAssessmentCreateOrUpdate40060 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyAssessment.hbm.xml</value>
			</list>
		</property>
	</bean>

	<bean id="hdr2IntoleranceConditionReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- IntoleranceConditionPharmacyRead40010 -->
				<!-- <value>gov/va/med/cds/persistence/hibernate/allergy/IntoleranceConditionPharmacyRead40010.hbm.xml</value> -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyPractitionerParticipationChartMarker.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyPractitionerParticipationIdBandMarker.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/Reaction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugClass.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugIngredient.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyComment.hbm.xml</value>
				
				<!-- value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientMedicationPromise.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientTreatmentFactor.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OriginalMedicationDispense.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RefillMedicationDispense.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/PartialMedicationDispense.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/MedicationInstruction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/ActivityLog.hbm.xml</value -->

				<!-- IntoleranceConditionRead40010 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/IntoleranceConditionRead40010.hbm.xml</value>

				<!-- MHVIntoleranceConditionRead40011 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/MHVIntoleranceConditionRead40011.hbm.xml</value>

				<!-- IntoleranceConditionReducedRead40011 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/IntoleranceConditionReducedRead40011.hbm.xml</value>

				<!-- VWIntoleranceConditionRead40010 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/VWIntoleranceConditionRead40010.hbm.xml</value>
			</list>
		</property>
	</bean>

	<bean id="hdr2RdiIntoleranceConditionOutpatientMedicationPromise40010ReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
	    <property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- IntoleranceCondition -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/RDIIntoleranceConditionRead40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/Reaction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugClass.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugIngredient.hbm.xml</value>
					
				<!-- OutpatientPharmacy -->
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RDIOutpatientMedicationPromise40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientTreatmentFactor40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OriginalMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RefillMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/PartialMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/MedicationInstruction40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/ActivityLog40010.hbm.xml</value>
			</list>
		</property>
	</bean>

	<bean id="hdr2RdiIntoleranceConditionOutpatientMedicationPromise40011ReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
	    <property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- IntoleranceCondition -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/RDIIntoleranceConditionRead40011.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/Reaction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugClass.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugIngredient.hbm.xml</value>
	
				<!-- OutpatientPharmacy -->
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RDIOutpatientMedicationPromise40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientTreatmentFactor40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OriginalMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RefillMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/PartialMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/MedicationInstruction40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/ActivityLog40010.hbm.xml</value>
			</list>
		</property>
	</bean>


	<bean id="hdr2RdiIntoleranceConditionOutpatientMedicationPromise40012ReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
	    <property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- IntoleranceCondition -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/RDIIntoleranceConditionRead40012.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/Reaction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugClass.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugIngredient.hbm.xml</value>
	
				<!-- OutpatientPharmacy -->
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RDIOutpatientMedicationPromise40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientTreatmentFactor40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OriginalMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RefillMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/PartialMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/MedicationInstruction40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/ActivityLog40010.hbm.xml</value>
			</list>
		</property>
	</bean>
		
	<bean id="hdr2RdiIntoleranceConditionOutpatientMedicationPromise40013ReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- IntoleranceCondition -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/RDIIntoleranceConditionRead40013.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/Reaction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugClass.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugIngredient.hbm.xml</value>
							
				<!-- OutpatientPharmacy -->
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RDIOutpatientMedicationPromise40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientTreatmentFactor40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OriginalMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RefillMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/PartialMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/MedicationInstruction40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/ActivityLog40010.hbm.xml</value>
				
				<!-- AllergyAssessment -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/RDIAllergyAssessmentRead40013.hbm.xml</value>
			</list>
		</property>
	</bean>


	<bean id="hdr2IntoleranceConditionWritableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- IntoleranceConditionCreateOrUpdate40060 -->
				<value>gov/va/med/cds/persistence/hibernate/allergy/IntoleranceConditionCreateOrUpdate40060.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyPractitionerParticipationChartMarker.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/AllergyPractitionerParticipationIdBandMarker.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/Reaction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugClass.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/allergy/DrugIngredient.hbm.xml</value>
				 <value>gov/va/med/cds/persistence/hibernate/allergy/AllergyCommentCreate.hbm.xml</value>

				<!-- IntoleranceConditionDelete40030 -->
				<!-- <value>gov/va/med/cds/persistence/hibernate/allergy/IntoleranceConditionDelete40030.hbm.xml</value> -->
			</list>
		</property>
	</bean>

	<bean id="hdr2VitalsignsReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<!-- VitalsignsRead40010 -->
				<value>gov/va/med/cds/persistence/hibernate/vital/VitalsignsRead40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/vital/ErrorReason.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/vital/VitalSignQualifier.hbm.xml</value>
			</list>
		</property>
	</bean>
	<bean id="hdr2VWVitalsignsReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
			
				<value>gov/va/med/cds/persistence/hibernate/vital/VitalSignQualifier.hbm.xml</value>
				
				<!-- VWVitalsignsRead40010 -->
				<value>gov/va/med/cds/persistence/hibernate/vital/VWVitalsignsRead40010.hbm.xml</value>
			</list>
		</property>
	</bean>

	<bean id="hdr2MHVVitalsignsReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
	     		<value>gov/va/med/cds/persistence/hibernate/vital/MHVVitalsignsRead40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/vital/VitalSignQualifier.hbm.xml</value>
			</list>
		</property>
	</bean>
	
	<bean id="hdr2VitalsignsWritableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list> 
				<!-- VitalsignsCreateOrUpdate40060 -->
	            <value>gov/va/med/cds/persistence/hibernate/vital/VitalsignsCreateOrUpdate40060.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/vital/ErrorReason.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/vital/VitalSignQualifier.hbm.xml</value>
			</list>
		</property>
	</bean>

	<bean id="hdr2Pharmacy40010ReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientMedicationPromise40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/MedicationInstruction40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OriginalMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/PartialMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RefillMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientTreatmentFactor40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/ActivityLog40010.hbm.xml</value>
			</list>
		</property>
	</bean>

	<bean id="hdr2VWPharmacyDetail40010ReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWPharmacyDetailRead40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWDetailOriginalMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWDetailRefillMedicationDispense40010.hbm.xml</value>
			</list>
		</property>
	</bean>
	
	<bean id="hdr2VWPharmacy40010ReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWPharmacyRead40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWOriginalMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWRefillMedicationDispense40010.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWPartialMedicationDispense40010.hbm.xml</value>
			</list>
		</property>
	</bean>
	
	<bean id="hdr2OutpatientPharmacyReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientMedicationPromise.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientTreatmentFactor.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OriginalMedicationDispense.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RefillMedicationDispense.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/PartialMedicationDispense.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/MedicationInstruction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/ActivityLog.hbm.xml</value>
			</list>
		</property>
	</bean>

	<bean id="hdr2VWOutpatientPharmacyReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWOutpatientPharmacyRead.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWOutpatientPharmacyOriginalMedicationDispense.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWOutpatientPharmacyRefillMedicationDispense.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWOutpatientPharmacyPartialMedicationDispense.hbm.xml</value>								
			</list>
		</property>
	</bean>	
		
	<bean id="hdr2VWOutpatientPharmacyDetailReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWOutpatientPharmacyDetailRead.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWOutpatientPharmacyDetailOriginalMedicationDispense.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/VWOutpatientPharmacyDetailRefillMedicationDispense.hbm.xml</value>
			</list>
		</property>
	</bean>
			
	<bean id="hdr2OutpatientPharmacyWritableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientMedicationPromiseCreateOrUpdate.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OutpatientTreatmentFactor.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/OriginalMedicationDispenseCreateOrUpdate.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/RefillMedicationDispenseCreateOrUpdate.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/PartialMedicationDispenseCreateOrUpdate.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/MedicationInstruction.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/pharmacy/ActivityLog.hbm.xml</value>
			</list>
		</property>
	</bean>
	
	<bean id="hdr2LabWritableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/lab/LabTestPromiseCreateOrUpdate.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/lab/LabTest.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/lab/ChemistryResult.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/lab/LabObservationMethod.hbm.xml</value>
			</list>
		</property>
	</bean>
	
	<bean id="hdr2MhvLabRead40011ReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/lab/MHVLabRead40011_LabTestPromise.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/lab/MHVLabRead40011_LabTest.hbm.xml</value>
				<value>gov/va/med/cds/persistence/hibernate/lab/MHVLabRead40011_ChemistryResult.hbm.xml</value>
			</list>
		</property>
	</bean>
							
	<bean id="hdr2PGDWriteableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pgd/PGDCreateOrUpdate1.hbm.xml</value>
			</list>
		</property>
	</bean>	
	
	<bean id="hdr2PGDDeleteSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pgd/PGDDelete1.hbm.xml</value>					
			</list>
		</property>
	</bean>	
	
	<bean id="hdr2PGDReadableSessionFactory" parent="abstractHdrHibernatePropertiesPojo">
		<property name="dataSource" ref="hdrDataSource" />
		<property name="mappingResources">
			<list>
				<value>gov/va/med/cds/persistence/hibernate/pgd/PGDRead1.hbm.xml</value>
			</list>
		</property>
	</bean>	
</beans>
