Skip to content

Commit

Permalink
chore: log if deceased is NULL
Browse files Browse the repository at this point in the history
This simply logs a warning if resulting deceased date ist NULL which is the result
if "Sterbedatum" tag in oBDS is present but blank.
  • Loading branch information
pcvolkmer committed Sep 7, 2024
1 parent 819e0e5 commit bec01a2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ public Bundle mapOnkoResourcesToPatient(List<MeldungExport> meldungExportList) {
.getTod()
.getSterbedatum();

patient.setDeceased(convertObdsDateToDateTimeType(deathDate));
final var deceased = convertObdsDateToDateTimeType(deathDate);
if (null == deceased) {
LOG.warn("Sterbedatum is NULL.");
}
patient.setDeceased(deceased);
} else {
LOG.warn("Sterbedatum not set on any of the Tod Meldungen.");
}
Expand Down

0 comments on commit bec01a2

Please sign in to comment.