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

added tests for visit start/end time

parent caa6983d
...@@ -46,6 +46,7 @@ import de.sekmi.histream.ObservationSupplier; ...@@ -46,6 +46,7 @@ import de.sekmi.histream.ObservationSupplier;
import de.sekmi.histream.Value; import de.sekmi.histream.Value;
import de.sekmi.histream.ext.Patient; import de.sekmi.histream.ext.Patient;
import de.sekmi.histream.ext.Visit; import de.sekmi.histream.ext.Visit;
import de.sekmi.histream.DateTimeAccuracy;
import de.sekmi.histream.Modifier; import de.sekmi.histream.Modifier;
import de.sekmi.histream.impl.ObservationFactoryImpl; import de.sekmi.histream.impl.ObservationFactoryImpl;
import de.sekmi.histream.impl.SimplePatientExtension; import de.sekmi.histream.impl.SimplePatientExtension;
...@@ -84,6 +85,8 @@ public class FileObservationProviderTest { ...@@ -84,6 +85,8 @@ public class FileObservationProviderTest {
Visit v = o.getExtension(Visit.class); Visit v = o.getExtension(Visit.class);
Assert.assertNotNull("Visit extension required", v); Assert.assertNotNull("Visit extension required", v);
Assert.assertEquals("Zuhause", v.getLocationId()); Assert.assertEquals("Zuhause", v.getLocationId());
Assert.assertEquals(DateTimeAccuracy.parsePartialIso8601("2014-01-01T10:30:00"), v.getStartTime());
Assert.assertEquals(DateTimeAccuracy.parsePartialIso8601("2014-01-05T10:30:00"), v.getEndTime());
// TODO test visit information // TODO test visit information
}, },
(Observation o) -> { (Observation o) -> {
......
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