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