Skip to content

Commit

Permalink
U4X-833: Ensure that provider which are null are not added to the col…
Browse files Browse the repository at this point in the history
…lection of providers at resource generation (#183)
  • Loading branch information
slubwama authored Nov 14, 2024
1 parent 2a9d24a commit 2d5b30d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,10 @@ private String generateFHIRCaseResource(SyncFhirProfile syncFhirProfile, SyncFhi
}

for (Encounter encounter : encounters) {
providerList.add(getProviderFromEncounter(encounter));
Provider provider = getProviderFromEncounter(encounter);
if (provider != null) {
providerList.add(provider);
}
}

if (providerList.size() > 0) {
Expand Down

0 comments on commit 2d5b30d

Please sign in to comment.