Commit 0ce6539a authored by R.W.Majeed's avatar R.W.Majeed
Browse files

example documentation

parent 25415988
...@@ -13,6 +13,9 @@ import de.sekmi.histream.export.ExceptionCausingWriter.WhereToThrow; ...@@ -13,6 +13,9 @@ import de.sekmi.histream.export.ExceptionCausingWriter.WhereToThrow;
import de.sekmi.histream.export.config.ExportDescriptor; import de.sekmi.histream.export.config.ExportDescriptor;
import de.sekmi.histream.io.FileObservationProviderTest; import de.sekmi.histream.io.FileObservationProviderTest;
// TODO expectExceptionForOverlappingGroups
// TODO expectExceptionForDuplicateConcepts
public class TestExport { public class TestExport {
private ExportDescriptor descriptor; private ExportDescriptor descriptor;
......
...@@ -28,12 +28,13 @@ ...@@ -28,12 +28,13 @@
<column header="f_loc" xpath="eav:fact[@concept='T:full']/@location"/> <column header="f_loc" xpath="eav:fact[@concept='T:full']/@location"/>
<column header="f_val" xpath="eav:fact[@concept='T:full']/eav:value"/> <column header="f_val" xpath="eav:fact[@concept='T:full']/eav:value"/>
</visit-table> </visit-table>
<!-- eav-table/@xpath uses visit context. Enter expression to select desired fact elements -->
<eav-table id="eavtabletest" xpath="eav:fact[@class='testeav']"> <eav-table id="eavtabletest" xpath="eav:fact[@class='testeav']">
<!-- context for XPath expressions is each fact node --> <!-- context for column/@xpath expression is each fact node -->
<column header="pid" xpath="../../@id"/> <column header="pid" xpath="../../@id"/>
<column header="visit" xpath="../@id"/> <column header="visit" xpath="../@id"/>
<column header="code" xpath="@concept"/> <column header="code" xpath="@concept"/>
<column header="start" xpath="@start"/> <column header="start" xpath="@start"/>
</eav-table> </eav-table>
<!-- more eav-table allowed -->
</export> </export>
...@@ -57,10 +57,10 @@ to construct table data. ...@@ -57,10 +57,10 @@ to construct table data.
--> -->
</visit-table> </visit-table>
<!-- export separate table for repeating elements --> <!-- export separate table for repeating elements -->
<eav-table id="diag" class="diag"> <eav-table id="diag" xpath="eav:fact[@class='diag']">
<!-- context for XPath expressions is each fact node --> <!-- context for XPath expressions is each fact node -->
<column header="pid" xpath="patient-ref"/> <column header="pid" xpath="../../@id"/>
<column header="visit" xpath="visit-ref"/> <column header="visit" xpath="../@id"/>
<column header="start" type="@start"/> <column header="start" type="@start"/>
<column header="code" type="@concept"/> <column header="code" type="@concept"/>
<column header="primary" xpath="eav:modifier[@code='fuehrend']/@code"/> <column header="primary" xpath="eav:modifier[@code='fuehrend']/@code"/>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment