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;
import de.sekmi.histream.export.config.ExportDescriptor;
// 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"/>
<!-- 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"/>
<!-- more eav-table allowed -->
......@@ -57,10 +57,10 @@ to construct table data.
<!-- 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"/>
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