test-4-datasource2.xml 2.36 KB
Newer Older
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 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
<?xml version="1.0" encoding="UTF-8"?>
<datasource version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<!-- Duplicate concept for patient -->
	<meta>
		<id>LTx_PH_ILD_COPD</id>
		<etl-strategy>replace-source</etl-strategy>
	</meta>
	
	 <patient-table>
		<source xsi:type="csv-file">
			<url>test-4-table.csv</url>
			<separator>;</separator>
		</source>
		<idat>
      <!-- Vorname, Nachname, Geschlecht unbekannt -->
			<patient-id column="Pheno-ID"/>
			<given-name column="Pheno-ID"/>
			<surname column="Pheno-ID"/>
		</idat>
		<ignore xsi:type="string" column="*"/>
	</patient-table>
	<visit-table>
		<source xsi:type="csv-file">
			<url>test-4-table.csv</url>
			<separator>;</separator>
		</source>
		<idat>
			<patient-id column="Pheno-ID"/>
			<visit-id column="Zeitpunkt"/>
			<start column="Zeitpunkt" format="d.M.u[ H[:m[:s]]]"/>
		</idat>
	<ignore xsi:type="string" column="*"/>
	</visit-table>
	<eav-table>
		<source xsi:type="csv-file">
			<url>test-4-table.csv</url>
			<separator>;</separator>
		</source>	
		<idat>
			<patient-id column="Pheno-ID"/>
			<visit-id column="Zeitpunkt"/>
		</idat>
		<mdat>
			<concept column="Export-Param"/>
			<start column="Zeitpunkt" format="d.M.u[ H[:m[:s]]]"/>
			<end column="Zeitpunkt" format="d.M.u[ H[:m[:s]]]"/>
			<type constant-value="string"/>
			<value column="Wert" na=""/>
			<unit column="Einheiten" na=""/>
		</mdat>
		<virtual>
			<value column="Diagnose" xsi:type="string" na="">
				<map>					
					<otherwise log-warning="Unexpected value" action="drop-fact" />
				</map>
			</value>
			<value column="Zusatzdiagnose" xsi:type="string" na="">
				<map>
					<case value="IPF" set-concept="B:DP-ID-IPF" set-value=""/>
					<case value="UIP" set-concept="B:DP-ID-IPF" set-value=""/>
					<otherwise log-warning="Unexpected value" action="drop-fact" />
				</map>
			</value>
			<value column="Probenart" xsi:type="string" na="">
				<map>
					<otherwise action="drop-fact"/>
				</map>
			</value>
			<value column="Diesease Area" xsi:type="string" na="">
				<map>
					<otherwise action="drop-fact"/>
				</map>
			</value>
		</virtual>	
		<ignore xsi:type="string" column="*"/>
	</eav-table>
	<post-processing>
		<filter xsi:type="duplicate-fact"/>
79 80 81 82 83 84
		<!--  also possible to specify concepts to filter
			<filter xsi:type="duplicate-fact">
				<concept>kalium</concept>
			</filter>
		 -->

85 86
	</post-processing>
</datasource>