histream.xml 2.91 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!--
  #%L
  histream
  %%
  Copyright (C) 2013 - 2015 R.W.Majeed
  %%
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  #L%
  -->
R.W.Majeed's avatar
R.W.Majeed committed
20
<histream>
21
	<!-- TODO named property groups, which can be shared and referenced by plugins. this will reduce duplicate properties -->
R.W.Majeed's avatar
R.W.Majeed committed
22
23
	<plugins>
		<!-- plugins are loaded in order of occurance -->
24
		<plugin class="de.sekmi.histream.i2b2.PostgresPatientStore">
25
26
27
28
29
30
			<property name="user">i2b2demodata</property>	
			<property name="host">localhost</property>	
			<property name="database">i2b2</property>	
			<property name="port">15432</property>	
			<property name="password"></property>	
			<property name="project">demo</property>					
R.W.Majeed's avatar
R.W.Majeed committed
31
		</plugin>
32
		<plugin class="de.sekmi.histream.i2b2.PostgresVisitStore">
33
34
35
36
37
38
			<property name="user">i2b2demodata</property>	
			<property name="host">localhost</property>	
			<property name="database">i2b2</property>	
			<property name="port">15432</property>	
			<property name="password"></property>	
			<property name="project">demo</property>					
R.W.Majeed's avatar
R.W.Majeed committed
39
		</plugin>
40
		<plugin class="de.sekmi.histream.i2b2.I2b2Inserter">
41
42
43
44
45
46
47
			<property name="user">i2b2demodata</property>	
			<property name="host">localhost</property>	
			<property name="database">i2b2</property>	
			<property name="port">15432</property>	
			<property name="password"></property>	
			<property name="project">demo</property>					
			<property name="nullProvider">LCS-I2B2:PROVIDERS</property>					
48
		</plugin>
49
		<!-- supported file formats -->
50
51
52
53
		<plugin class="de.sekmi.histream.io.XMLProviderFactory"/>
		<plugin class="de.sekmi.histream.io.FlatProviderFactory"/>
		
		<!-- 
54
		<plugin class="de.sekmi.histream.i2b2.services.HiveServer">
R.W.Majeed's avatar
R.W.Majeed committed
55
56
57
58
			<property name="user">i2b2demodata</property>
		</plugin>
		<plugin class="de.sekmi.histream.hl7.MLLPListener">
			<property name="port">123</property>
59
		</plugin> -->
R.W.Majeed's avatar
R.W.Majeed committed
60
61
62
63
	</plugins>
	<!-- Wie kann die Konfiguration benutzt werden, wenn z.B. Dateien von der Kommandozeile
	gelesen werden sollen und dann das Programm beendet werden soll?
	 -->
64
	<!-- 
65
66
	<source plugin="de.sekmi.histream.hl7.MLLPListener" />
	<source plugin="de.sekmi.histream.impl.SAXObservationProvider" />
67
	-->
68
	<!-- TODO source umbenennen in listener (fuer netzwerkschnittstellen) -->
69
	
70
	<destination plugin="de.sekmi.histream.i2b2.I2b2Inserter" />
R.W.Majeed's avatar
R.W.Majeed committed
71
72
73
74
75
76
77
	
	<!-- kann dateien von Kommandozeile lesen -->
	<filehandler  type="text/xml" plugin-ref="de.sekmi.histream.hl7.MLLPListener">
		<url src="file://....xml" />
	</filehandler>
		
</histream>