Commit ed75c165 authored by R.W.Majeed's avatar R.W.Majeed

verbose NPE for missing patient id or encounter id

parent 94e614d5
......@@ -82,9 +82,9 @@ public abstract class GroupedObservationHandler implements ObservationHandler, A
Visit thisVisit = observation.getExtension(Visit.class);
// assertations to simplify troubleshooting corrupt data
Objects.requireNonNull(thisPatient);
Objects.requireNonNull(thisPatient.getId());
Objects.requireNonNull(thisPatient.getId(),"Patient w/o ID");
Objects.requireNonNull(thisVisit);
Objects.requireNonNull(thisVisit.getId());
Objects.requireNonNull(thisVisit.getId(),"Visit w/o ID");
if( prevPatient == null ){
// write start document, meta, patient
......
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