test-1-datasource.xml 2.29 KB
Newer Older
R.W.Majeed's avatar
R.W.Majeed committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<datasource version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
	<meta>
		<etl-strategy>replace-source</etl-strategy>
		<source-id>test-1</source-id>
	</meta>
	<!-- erstmal weglassen -->
	<transformations>
		<xml-source url="xxxx.xml">
			<transform with="a.xslt" to="lala.txt" />
			<transform with="b.xslt" to="dddd.txt" />
		</xml-source>
	</transformations>

	<!-- 
	<value-mappings>
		<map id="geschlecht">
			<value from="M" to="M" />
			<value from="W" to="F" /> 
		</map>
	</value-mappings>
	 -->
	 
	<patient-table>
        <source xsi:type="fileSource">
R.W.Majeed's avatar
R.W.Majeed committed
26
27
            <url>file:src/test/resources/test-1-patients.txt</url>
            <separator>\t</separator>
R.W.Majeed's avatar
R.W.Majeed committed
28
29
30
31
32
        </source>
		<idat>
			<patient-id>patid</patient-id>
			<firstname>vorname</firstname>
			<surname>nachname</surname>
R.W.Majeed's avatar
R.W.Majeed committed
33
34
			<birthdate format="d.M.u">geburtsdatum</birthdate>
			<deathdate format="d.M.u">verstorben</deathdate>
R.W.Majeed's avatar
R.W.Majeed committed
35
36
37
38
39
40
41
42
			<gender>geschlecht</gender>
			<ignore xsi:type="stringColumn">ignoriert1</ignore>
			<ignore xsi:type="stringColumn">patfakt1</ignore>
		</idat>		
	</patient-table>
	<!-- optional -->
	<visit-table>
        <source xsi:type="fileSource">
43
            <url>file:src/test/resources/test-1-visits.txt</url>
R.W.Majeed's avatar
R.W.Majeed committed
44
            <type>text/csv</type>
R.W.Majeed's avatar
R.W.Majeed committed
45
			<separator>\t</separator>
R.W.Majeed's avatar
R.W.Majeed committed
46
47
48
49
        </source>
		<idat>
			<patient-id>patid</patient-id>
			<visit-id>fallnr</visit-id>
50
51
			<start format="d.M.u[ H[:m[:s]]]" na="@" truncate-to="year">start</start>
			<end format="d.M.u[ H[:m[:s]]]">end</end>
R.W.Majeed's avatar
R.W.Majeed committed
52
53
54
55
56
57
58
59
60
61
62
63
64
		</idat>
		<mdat>
			<!-- in/out code -->
			<concept id="weight">
				<value xsi:type="stringColumn">gewicht</value>
				<start>start</start>
			</concept>
		</mdat>
	</visit-table>
	
	<wide-table>
        <source xsi:type="fileSource">
            <url>file:test-1-widetable.txt</url>
R.W.Majeed's avatar
R.W.Majeed committed
65
			<separator>\t</separator>
R.W.Majeed's avatar
R.W.Majeed committed
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
        </source>
		<idat>
			<patient-id>patid</patient-id>
			<visit-id>fallnr</visit-id>
		</idat>
		<mdat>
			<concept id="natrium">
				<value xsi:type="stringColumn">na</value>
				<start>zeitpunkt</start>
				<unit constant-value="mmol/l" />
				<modifier id="other">
					<value xsi:type="stringColumn">other</value>
				</modifier>
			</concept>
		</mdat>
		..
	</wide-table>

</datasource>