diff --git a/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/GenericClient.java b/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/GenericClient.java index 1dde63d673a..396b3fdbc39 100644 --- a/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/GenericClient.java +++ b/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/GenericClient.java @@ -769,10 +769,11 @@ public QUERY where(Map> theCriterion) { for (IQueryParameterType nextValue : nextValues) { String value = nextValue.getValueAsQueryToken(myContext); String qualifier = nextValue.getQueryParameterQualifier(); + String parameterName = nextKey; if (isNotBlank(qualifier)) { - nextKey = nextKey + qualifier; + parameterName += qualifier; } - addParam(myParams, nextKey, value); + addParam(myParams, parameterName, value); } } return (QUERY) this;