Interface SearchFuzzUtil


public interface SearchFuzzUtil
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static 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 for 4.00, this method returns 0.005 because we shold actually match values which are 4 (+/-) 0.005 according to the FHIR specs.