Package ca.uhn.fhir.jpa.dao.predicate
Interface SearchFuzzUtil
public interface SearchFuzzUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimal
calculateFuzzAmount
(ca.uhn.fhir.rest.param.ParamPrefixEnum cmpValue, BigDecimal theValue) Figures out the tolerance for a search.
-
Method Details
-
calculateFuzzAmount
static BigDecimal calculateFuzzAmount(ca.uhn.fhir.rest.param.ParamPrefixEnum cmpValue, BigDecimal theValue) Figures out the tolerance for a search. For example, if the user is searching for4.00
, this method returns0.005
because we shold actually match values which are4 (+/-) 0.005
according to the FHIR specs.
-