From 3d352582a28eec82440c197602b7cb12850d6d8c Mon Sep 17 00:00:00 2001 From: Melih Aydogdu Date: Mon, 22 Jul 2024 13:51:29 +0200 Subject: [PATCH] string param changed to token param --- .../fhir/jpa/searchparam/matcher/InMemoryResourceMatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-jpaserver-searchparam/src/main/java/ca/uhn/fhir/jpa/searchparam/matcher/InMemoryResourceMatcher.java b/hapi-fhir-jpaserver-searchparam/src/main/java/ca/uhn/fhir/jpa/searchparam/matcher/InMemoryResourceMatcher.java index 78fc2cae5ef5..22c1a26946f0 100644 --- a/hapi-fhir-jpaserver-searchparam/src/main/java/ca/uhn/fhir/jpa/searchparam/matcher/InMemoryResourceMatcher.java +++ b/hapi-fhir-jpaserver-searchparam/src/main/java/ca/uhn/fhir/jpa/searchparam/matcher/InMemoryResourceMatcher.java @@ -452,8 +452,8 @@ private boolean matchIdsAndOr(List> theAndOrParams, IB private boolean matchIdsOr(List theOrParams, IBaseResource theResource) { return theOrParams.stream() - .anyMatch(param -> param instanceof StringParam - && matchId(((StringParam) param).getValue(), theResource.getIdElement())); + .anyMatch(param -> param instanceof TokenParam + && matchId(((TokenParam) param).getValue(), theResource.getIdElement())); } private boolean matchId(String theValue, IIdType theId) {