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.Nullable;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -107,6 +108,7 @@ public class SubscriptionCanonicalizer {
|
|||
private Map<String, String> extractTags(IBaseResource theSubscription) {
|
||||
return theSubscription.getMeta().getTag()
|
||||
.stream()
|
||||
.filter(t -> t.getSystem() != null && t.getCode() != null)
|
||||
.collect(Collectors.toMap(
|
||||
IBaseCoding::getSystem,
|
||||
IBaseCoding::getCode
|
||||
|
|
Loading…
Reference in New Issue