test fix (#3193)
* 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:
parent
10cad65534
commit
3743fbc62f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue