pre-review cleanup
This commit is contained in:
parent
43f17534bb
commit
4fa849a3e5
|
@ -3,9 +3,7 @@ package ca.uhn.fhir.rest.param;
|
||||||
import ca.uhn.fhir.context.FhirContext;
|
import ca.uhn.fhir.context.FhirContext;
|
||||||
import ca.uhn.fhir.model.api.IQueryParameterType;
|
import ca.uhn.fhir.model.api.IQueryParameterType;
|
||||||
import ca.uhn.fhir.rest.api.Constants;
|
import ca.uhn.fhir.rest.api.Constants;
|
||||||
import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException;
|
|
||||||
|
|
||||||
import static org.apache.commons.lang3.StringUtils.defaultString;
|
|
||||||
import static org.apache.commons.lang3.StringUtils.left;
|
import static org.apache.commons.lang3.StringUtils.left;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2739,7 +2739,6 @@ public class SearchBuilder implements ISearchBuilder {
|
||||||
throw new InvalidRequestException("Unexpected search parameter type encountered, expected string type for language search");
|
throw new InvalidRequestException("Unexpected search parameter type encountered, expected string type for language search");
|
||||||
}
|
}
|
||||||
} else if (searchParam.getName().equals(Constants.PARAM_SOURCE)) {
|
} else if (searchParam.getName().equals(Constants.PARAM_SOURCE)) {
|
||||||
// FIXME KHS remove this
|
|
||||||
if (searchParam.getParamType() == RestSearchParameterTypeEnum.TOKEN) {
|
if (searchParam.getParamType() == RestSearchParameterTypeEnum.TOKEN) {
|
||||||
TokenParam param = new TokenParam();
|
TokenParam param = new TokenParam();
|
||||||
param.setValueAsQueryToken(null, null, null, theFilter.getValue());
|
param.setValueAsQueryToken(null, null, null, theFilter.getValue());
|
||||||
|
|
|
@ -176,10 +176,11 @@ public class InMemoryResourceMatcher {
|
||||||
} else {
|
} else {
|
||||||
return InMemoryMatchResult.fromBoolean(theAndOrParams.stream().anyMatch(nextAnd -> matchParams(theResourceName, theParamName, theParamDef, nextAnd, theSearchParams)));
|
return InMemoryMatchResult.fromBoolean(theAndOrParams.stream().anyMatch(nextAnd -> matchParams(theResourceName, theParamName, theParamDef, nextAnd, theSearchParams)));
|
||||||
}
|
}
|
||||||
|
case SOURCE:
|
||||||
|
// FIXME KHS implement
|
||||||
case COMPOSITE:
|
case COMPOSITE:
|
||||||
case HAS:
|
case HAS:
|
||||||
case SPECIAL:
|
case SPECIAL:
|
||||||
case SOURCE:
|
|
||||||
default:
|
default:
|
||||||
return InMemoryMatchResult.unsupportedFromParameterAndReason(theParamName, InMemoryMatchResult.PARAM);
|
return InMemoryMatchResult.unsupportedFromParameterAndReason(theParamName, InMemoryMatchResult.PARAM);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue