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

example documentation

parent 25415988
......@@ -13,6 +13,9 @@ import de.sekmi.histream.export.ExceptionCausingWriter.WhereToThrow;
import de.sekmi.histream.export.config.ExportDescriptor;
import de.sekmi.histream.io.FileObservationProviderTest;
// TODO expectExceptionForOverlappingGroups
// TODO expectExceptionForDuplicateConcepts
public class TestExport {
private ExportDescriptor descriptor;
......
......@@ -28,12 +28,13 @@
<column header="f_loc" xpath="eav:fact[@concept='T:full']/@location"/>
<column header="f_val" xpath="eav:fact[@concept='T:full']/eav:value"/>
</visit-table>
<!-- eav-table/@xpath uses visit context. Enter expression to select desired fact elements -->
<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="visit" xpath="../@id"/>
<column header="code" xpath="@concept"/>
<column header="start" xpath="@start"/>
</eav-table>
<!-- more eav-table allowed -->
</export>
......@@ -57,10 +57,10 @@ to construct table data.
-->
</visit-table>
<!-- 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 -->
<column header="pid" xpath="patient-ref"/>
<column header="visit" xpath="visit-ref"/>
<column header="pid" xpath="../../@id"/>
<column header="visit" xpath="../@id"/>
<column header="start" type="@start"/>
<column header="code" type="@concept"/>
<column header="primary" xpath="eav:modifier[@code='fuehrend']/@code"/>
......
Markdown is supported
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