Commit 30dab98b authored by R.W.Majeed's avatar R.W.Majeed

Fixed bug ignoring end-time in eav tables

parent c4da1073
......@@ -167,6 +167,10 @@ public class EavTable extends Table<EavRow> {
if( visit != null ){
fact.setEncounterId(visit);
}
DateTimeAccuracy end = mdat.end.valueOf(colMap,row);
if( end != null ){
fact.setEndTime(end);
}
if( vval != null ){
// convert native type to observation value
if( vval instanceof String ){
......
......@@ -92,6 +92,7 @@ public class TestReadTables {
// should be processed by virtual column map
Assert.assertEquals("f_eav_x_1", f.getConceptId());
Assert.assertNull(f.getValue());
Assert.assertNotNull(f.getEndTime());
}
}
}
......@@ -31,4 +31,4 @@ p3 v4 L1 u1 f_eav_i 2013-08-30 @ decimal 0.32 @
p3 v4 L1 u1 f_eav_l 2013-08-30 @ decimal 1.1 @
p3 v4 L1 u1 f_eav_v 2013-08-30 @ decimal 0.5 @
p3 v4 L1 u1 f_eav_a 2013-08-30 @ decimal 12.0 @
p3 v4 L1 u1 f_eav_x 2013-08-30 @ integer 1 @
p3 v4 L1 u1 f_eav_x 2013-08-30 2013-08-31 integer 1 @
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