dwh-eav.xml 2.8 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%
  -->
20
<dwh-eav xmlns="http://sekmi.de/histream/dwh-eav">
R.W.Majeed's avatar
R.W.Majeed committed
21
22
23
	<!-- chronologisch impliziert, dass der zeitstempel eines nachfolgenden elementes gr��er als alle vorangehenden elemente sein muss. Der Zeitstempel kann vor dem Encounter-Start liegen -->
	<meta>
		<!-- Zeitpunkt, an dem der Export erstellt wurde bzw. Datenstand -->
24
		<etl strategy="replace-visit" />
25
		<source timestamp="2015-04-21T08:58:00" id="test"/>
R.W.Majeed's avatar
R.W.Majeed committed
26
27
28
29
30
31
32
33
34
35
		<enum concept="L:46098-0">
			<value id="0">Male</value>
			<value id="1">Female</value>
		</enum>
		
		<!-- weitere metadaten n�tig? wertebereich, datentypen, ontologie, ...? -->
	</meta>
	<visit>
		<patid>XX12345</patid>
		<surname>Dampf</surname>
36
		<names>A</names>
R.W.Majeed's avatar
R.W.Majeed committed
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
		<birthdate>2001-01-01</birthdate>
		<deathdate>2020</deathdate>
		<sex>F</sex>
		<encounter start="2014-01-01T10:30:00" end="2014-01-05T10:30:00">XXE12345</encounter>
		<location>Zuhause</location>
		<!-- TODO inpatient/outpatient -->
		<provider>xxxa</provider>
		<facts>
			<!--  test parsing of partial time stamps -->
			<eav-item concept="T:date:secs" start="2014-09-07T10:40:03"/>
			<eav-item concept="T:date:mins" start="2014-09-07T10:40"/>
			<eav-item concept="T:date:hours" start="2014-09-07T10"/>
			<eav-item concept="T:date:day" start="2014-09-07"/>
			<eav-item concept="T:date:month" start="2014-09"/>
			<eav-item concept="T:date:year" start="2014"/>
			
			<!-- test parsing of data types -->
			<eav-item concept="T:type:str" type="xsi:string">abc123</eav-item>
			<eav-item concept="T:type:int" type="xsi:integer">123</eav-item>
			<!-- value attributes can be used in elements eav-item and value -->
			<eav-item concept="T:type:dec" type="xsi:decimal" unit="mm" flag="A">123.456</eav-item>
58
			<eav-item concept="T:full" start="2010" end="2011" type="xsi:decimal" unit="mm" flag="A" location="T:LOC">123.456</eav-item>
R.W.Majeed's avatar
R.W.Majeed committed
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
			<!-- 
			<eav-item concept="T:type:enum" type="xsi:integer">1</eav-item>
				-->
			<!--  test group items -->
			
			<eav-group concept="T:group:1">
				<value modifier="T:mod:1"/>
				<value modifier="T:mod:2" type="xsi:string">def456</value>
				<value modifier="T:mod:3" type="xsi:decimal" unit="mm" flag="A">78.9</value>
			</eav-group>
		
		</facts>
	</visit>
	<!-- weitere zeitstempel -->
	
</dwh-eav>