Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

root/openmrs-modules/chica/metadata/moduleApplicationContext.xml

Revision 5569, 7.3 kB (checked in by tmdugan, 3 months ago)

-- chica

* updated openmrs jars
* added greaseboard app
* added manual checkin
* fixed load chica1 obs script
* updated test cases to work with junit4
* added custom randomizers
* moved some tables to atd module

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
3
4 <!-- Beans to add to the current Application context definition -->
5  
6 <beans>
7        
8         <bean id="chicaUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
9         <property name="mappings">
10             <props>
11                                 <prop key="/module/@MODULE_ID@/testCheckin.form">testCheckin</prop>
12                                 <prop key="/module/@MODULE_ID@/parseDictionary.form">parseDictionary</prop>
13                                 <prop key="/module/@MODULE_ID@/loadObs.form">loadObs</prop>
14                                 <prop key="/module/@MODULE_ID@/fillOutPSF.form">fillOutPSF</prop>
15                                 <prop key="/module/@MODULE_ID@/fillOutPWS.form">fillOutPWS</prop>
16                                 <prop key="/module/@MODULE_ID@/greaseBoard.form">greaseBoard</prop>
17                                 <prop key="/module/@MODULE_ID@/manualCheckin.form">manualCheckin</prop>
18                                 <prop key="/module/@MODULE_ID@/manualCheckinSSNMRN.form">manualCheckinSSNMRN</prop>
19                                 <prop key="/module/@MODULE_ID@/ruleTester.form">ruleTester</prop>       
20                         </props>
21                 </property>
22         </bean>
23         <bean id="testCheckin" class="org.openmrs.module.chica.web.TestCheckinController">
24                 <property name="commandName"><value>testCheckinObject</value></property>
25                 <property name="formView"><value>/module/@MODULE_ID@/testCheckin</value></property>
26                 <property name="successView"><value>testCheckin.form</value></property>
27         </bean>
28         <bean id="parseDictionary" class="org.openmrs.module.chica.web.ParseDictionaryController">
29                 <property name="commandName"><value>parseDictionaryObject</value></property>
30                 <property name="formView"><value>/module/@MODULE_ID@/parseDictionary</value></property>
31                 <property name="successView"><value>parseDictionary.form</value></property>
32         </bean>
33         <bean id="ruleTester" class="org.openmrs.module.chica.web.RuleTesterController">
34                 <property name="commandName"><value>ruleTesterObject</value></property>
35                 <property name="formView"><value>/module/@MODULE_ID@/ruleTester</value></property>
36                 <property name="successView"><value>ruleTester.form</value></property>
37         </bean>
38         <bean id="loadObs" class="org.openmrs.module.chica.web.LoadObsController">
39                 <property name="commandName"><value>loadObsObject</value></property>
40                 <property name="formView"><value>/module/@MODULE_ID@/loadObs</value></property>
41                 <property name="successView"><value>loadObs.form</value></property>
42         </bean>
43         <bean id="fillOutPSF" class="@MODULE_PACKAGE@.web.FillOutPSFController">
44                 <property name="commandName"><value>fillOutPSFObject</value></property>
45                 <property name="formView"><value>/module/@MODULE_ID@/fillOutPSF</value></property>
46                 <property name="successView"><value>fillOutPSF.form</value></property>
47         </bean>
48         <bean id="fillOutPWS" class="@MODULE_PACKAGE@.web.FillOutPWSController">
49                 <property name="commandName"><value>fillOutPWSObject</value></property>
50                 <property name="formView"><value>/module/@MODULE_ID@/fillOutPWS</value></property>
51                 <property name="successView"><value>fillOutPWS.form</value></property>
52         </bean>
53         <bean id="greaseBoard" class="@MODULE_PACKAGE@.web.GreaseBoardController">
54                 <property name="commandName"><value>greaseBoardObject</value></property>
55                 <property name="formView"><value>/module/@MODULE_ID@/greaseBoard</value></property>
56                 <property name="successView"><value>greaseBoard.form</value></property>
57         </bean>
58         <bean id="manualCheckin" class="@MODULE_PACKAGE@.web.ManualCheckinController">
59                 <property name="commandName"><value>manualCheckinObject</value></property>
60                 <property name="formView"><value>/module/@MODULE_ID@/manualCheckin</value></property>
61                 <property name="successView"><value>manualCheckin.form</value></property>
62         </bean>
63         <bean id="manualCheckinSSNMRN" class="@MODULE_PACKAGE@.web.ManualCheckinSSNMRNController">
64                 <property name="commandName"><value>manualCheckinSSNMRNObject</value></property>
65                 <property name="formView"><value>/module/@MODULE_ID@/manualCheckinSSNMRN</value></property>
66                 <property name="successView"><value>manualCheckinSSNMRN.form</value></property>
67         </bean>
68         <bean parent="serviceContext">
69                 <property name="moduleService">
70                         <list>
71                                 <value>org.openmrs.module.chica.service.EncounterService</value> <!-- service interface name -->
72                                 <bean class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
73                                         <property name="transactionManager"><ref bean="transactionManager"/></property>
74                                         <property name="target">
75                                                 <bean class="org.openmrs.module.chica.impl.EncounterServiceImpl">
76                                                         <property name="chicaEncounterDAO">
77                                                                 <bean class="org.openmrs.module.chica.db.hibernate.HibernateEncounterDAO">
78                                                                         <property name="sessionFactory"><ref bean="sessionFactory"/></property>
79                                                                 </bean>
80                                                         </property>     
81                                                 </bean>
82                                         </property>
83                                         <property name="preInterceptors">
84                                                 <list>
85                                                         <ref bean="authorizationInterceptor"/>
86                                                 </list>
87                                         </property>
88                                         <property name="transactionAttributeSource">
89                                                 <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
90                                         </property>
91                                 </bean>
92                         </list>
93                 </property>
94         </bean>
95        
96         <bean parent="serviceContext">
97                 <property name="moduleService">
98                         <list>
99                                 <value>org.openmrs.module.chica.service.ChicaService</value> <!-- service interface name -->
100                                 <bean class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
101                                         <property name="transactionManager"><ref bean="transactionManager"/></property>
102                                         <property name="target">
103                                                 <bean class="org.openmrs.module.chica.impl.ChicaServiceImpl">
104                                                         <property name="chicaDAO">
105                                                                 <bean class="org.openmrs.module.chica.db.hibernate.HibernateChicaDAO">
106                                                                         <property name="sessionFactory"><ref bean="sessionFactory"/></property>
107                                                                 </bean>
108                                                         </property>     
109                                                 </bean>
110                                         </property>
111                                         <property name="preInterceptors">
112                                                 <list>
113                                                         <ref bean="authorizationInterceptor"/>
114                                                 </list>
115                                         </property>
116                                         <property name="transactionAttributeSource">
117                                                 <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
118                                         </property>
119                                 </bean>
120                         </list>
121                 </property>
122         </bean>
123        
124         <bean id="logicChicaObsDAO" class="org.openmrs.module.chica.datasource.LogicChicaObsDAO"/>
125        
126         <bean id="obsChicaDataSource" class="org.openmrs.module.chica.datasource.ObsChicaDatasource">
127                 <property name="logicObsDAO"><ref bean="logicChicaObsDAO"></ref></property>
128         </bean>
129        
130         <bean id="logicObsDAO" class="org.openmrs.logic.db.hibernate.HibernateLogicObsDAO">
131                 <property name="sessionFactory"><ref bean="sessionFactory"/></property>
132         </bean>
133         <bean id="logicObsDataSource" class="org.openmrs.logic.datasource.ObsDataSource">
134                 <property name="logicObsDAO"><ref bean="logicObsDAO"></ref></property>
135         </bean>
136
137         <bean parent="logicServiceTarget">
138                 <property name="logicDataSources">
139                 <map>
140                         <entry key="RMRS"><ref bean="obsChicaDataSource" /></entry>
141                         <entry key="CHICA"><ref bean="logicObsDataSource" /></entry>
142                 </map>
143                 </property>
144         </bean>
145        
146         <bean parent="patientServiceTarget">
147                 <property name="identifierValidators">
148                 <map>
149                         <entry>
150                    <key><value>org.openmrs.module.chica.hl7.SSNValidator</value></key>
151                    <bean class="org.openmrs.module.chica.hl7.SSNValidator"/>
152                </entry>
153                 </map>
154                 </property>
155         </bean>
156 </beans>
Note: See TracBrowser for help on using the browser.