Skip to content

Commit

Permalink
[26313] reload biller as mandator before adding to fire fhir bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
huthomas committed Dec 12, 2024
1 parent 590401f commit a55081d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ private BundleFile addIncrementalEncounters(List<IEncounter> changedEncounters,
addMandatorToBundle(en.getMandator(), currentBundle.getBundle());
if (en.getMandator().getBiller().isPerson() && en.getMandator().getBiller().isMandator()
&& !en.getMandator().equals(en.getMandator().getBiller())) {
addMandatorToBundle((IMandator) en.getMandator().getBiller(), currentBundle.getBundle());
IContact biller = en.getMandator().getBiller();
addMandatorToBundle(coreModelService.load(biller.getId(), IMandator.class).get(),
currentBundle.getBundle());
}
}
toFIRE(fhirEncounter.get());
Expand Down

0 comments on commit a55081d

Please sign in to comment.