Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Raphael
histream
Commits
92220220
Commit
92220220
authored
Aug 21, 2015
by
R.W.Majeed
Browse files
added tests for visit start/end time
parent
caa6983d
Changes
1
Show whitespace changes
Inline
Side-by-side
histream-core/src/test/java/de/sekmi/histream/io/FileObservationProviderTest.java
View file @
92220220
...
...
@@ -46,6 +46,7 @@ import de.sekmi.histream.ObservationSupplier;
import
de.sekmi.histream.Value
;
import
de.sekmi.histream.ext.Patient
;
import
de.sekmi.histream.ext.Visit
;
import
de.sekmi.histream.DateTimeAccuracy
;
import
de.sekmi.histream.Modifier
;
import
de.sekmi.histream.impl.ObservationFactoryImpl
;
import
de.sekmi.histream.impl.SimplePatientExtension
;
...
...
@@ -84,6 +85,8 @@ public class FileObservationProviderTest {
Visit
v
=
o
.
getExtension
(
Visit
.
class
);
Assert
.
assertNotNull
(
"Visit extension required"
,
v
);
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
},
(
Observation
o
)
->
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment