Commit 3486cc4d authored by R.W.Majeed's avatar R.W.Majeed

example finished

parent c1258ed5
......@@ -11,7 +11,6 @@ import org.w3c.dom.Element;
import de.sekmi.histream.export.FactClassAnnotator;
import de.sekmi.histream.impl.ObservationImplJAXBTest;
import de.sekmi.histream.xml.XMLUtils;
public class TestFactClassAnnotator {
<?xml version="1.0" encoding="UTF-8"?>
<export xmlns=""
<export xmlns="">
the export is a three step process:
......@@ -29,65 +28,37 @@ to construct table data.
<column header="pid" xpath="@id"/>
<column header="birthdate" xpath="eav:birthdate"/>
<column header="gender" xpath="eav:gender"/>
<column header="birthdate" xpath="birthdate"/>
<column header="gender" xpath="gender"/>
<!-- context for XPath expressions is each visit node -->
<!-- XMLNS for XPath is assumed to be -->
<column header="pid" xpath="../@id"/>
<column header="visit" xpath="@id"/>
<!-- concepts for the visit table must occur only once
per visit and may not repeat -->
<column header="start" xpath="eav:start"/>
<column header="start" xpath="start"/>
<!-- What is better? -->
<!-- (a) First column, then concepts with value -->
<column header="diagnostik_labort_ts" na="NULL" xpath="facts/fact[@class='d_lab']/@start">
<concept code="LOINC:26436-6"/>
<concept code="LOINC:26436-6:NEG"/>
<value type="script">
<column header="diagnostik_labort_ts" xpath="facts/fact[@class='d_lab']/@start"/>
<column header="diagnostik_labort" xpath="facts/fact[@class='d_lab']/@concept"/>
<!-- (b) first concepts then columns with value -->
<concept code="LOINC:26436-6"/>
<concept code="LOINC:26436-6:NEG"/>
<column header="lab_ts" type="attribute">
<column header="diagnostik_labort_ts" xpath="facts/fact[@class='d_lab']/@start"/>
<column header="diagnostik_labort" xpath="facts/fact[@class='d_lab']/modifier[@code='OPB' or @code='PB']/@code"/>
<!-- We want this:
6:NEG -> not tested
6/mod=OPB -> tested non pathological
6/mod=PB -> tested pathological
<column header="lab_ergebnis" type="attribute">
<table id="diagnosen">
<!-- makes more sense for fact tables to specify
the list of concepts first. -->
<concept wildcard="ICD10:*"/>
<concept code="ICD9:123"/>
<column header="pid" type="patient-ref"/>
<column header="visit" type="visit-ref"/>
<column header="start" type="attribute">
<column header="primary" type="attribute" na="nein">
<!-- if a modifier element is provided, the property
will use the context of that modifier -->
<column header="text" type="attribute">
<!-- reference sequence from patient -->
<column header="seq1" type="sequence">
<sequence ref="seq1"/>
<!-- export separate table for repeating elements -->
<table id="diag" class="diag">
<!-- context for XPath expressions is each fact node -->
<column header="pid" xpath="patient-ref"/>
<column header="visit" xpath="visit-ref"/>
<column header="start" type="@start"/>
<column header="code" type="@concept"/>
<column header="primary" xpath="modifier[@code='fuehrend']/@code"/>
\ No newline at end of file
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