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
dfddf579
Commit
dfddf579
authored
Jul 24, 2017
by
R.W.Majeed
Browse files
assertations for troubleshooting
parent
71389574
Changes
1
Hide whitespace changes
Inline
Side-by-side
histream-core/src/main/java/de/sekmi/histream/impl/GroupedObservationHandler.java
View file @
dfddf579
package
de.sekmi.histream.impl
;
import
java.util.Objects
;
import
java.util.function.Consumer
;
import
de.sekmi.histream.Observation
;
...
...
@@ -79,6 +80,11 @@ public abstract class GroupedObservationHandler implements ObservationHandler, A
public
final
void
accept
(
Observation
observation
)
{
Patient
thisPatient
=
observation
.
getExtension
(
Patient
.
class
);
Visit
thisVisit
=
observation
.
getExtension
(
Visit
.
class
);
// assertations to simplify troubleshooting corrupt data
Objects
.
requireNonNull
(
thisPatient
);
Objects
.
requireNonNull
(
thisPatient
.
getId
());
Objects
.
requireNonNull
(
thisVisit
);
Objects
.
requireNonNull
(
thisVisit
.
getId
());
if
(
prevPatient
==
null
){
// write start document, meta, patient
...
...
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