* test fix

* review fixes

* minor tweak

* little cleareR

* Update hapi-fhir-storage/src/main/java/ca/uhn/fhir/jpa/subscription/match/registry/SubscriptionCanonicalizer.java

Co-authored-by: Ken Stevens <khstevens@gmail.com>

Co-authored-by: leif stawnyczy <leifstawnyczy@leifs-MacBook-Pro.local>
Co-authored-by: Ken Stevens <khstevens@gmail.com>
This commit is contained in:
TipzCM 2021-11-25 15:09:00 -05:00 committed by GitHub
parent 10cad65534
commit 3743fbc62f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -107,6 +108,7 @@ public class SubscriptionCanonicalizer {
private Map<String, String> extractTags(IBaseResource theSubscription) { private Map<String, String> extractTags(IBaseResource theSubscription) {
return theSubscription.getMeta().getTag() return theSubscription.getMeta().getTag()
.stream() .stream()
.filter(t -> t.getSystem() != null && t.getCode() != null)
.collect(Collectors.toMap( .collect(Collectors.toMap(
IBaseCoding::getSystem, IBaseCoding::getSystem,
IBaseCoding::getCode IBaseCoding::getCode