Class HapiStringSimilarity

java.lang.Object
ca.uhn.fhir.mdm.rules.similarity.HapiStringSimilarity
All Implemented Interfaces:
IMdmFieldSimilarity
Direct Known Subclasses:
HapiNumericSimilarity

public class HapiStringSimilarity extends Object implements IMdmFieldSimilarity
Similarity measure for two IBase fields whose similarity can be measured by their String representations.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final info.debatty.java.stringsimilarity.interfaces.NormalizedStringSimilarity
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    HapiStringSimilarity(info.debatty.java.stringsimilarity.interfaces.NormalizedStringSimilarity theStringSimilarity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    similarity(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBase theLeftBase, org.hl7.fhir.instance.model.api.IBase theRightBase, boolean theExact)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • myStringSimilarity

      protected final info.debatty.java.stringsimilarity.interfaces.NormalizedStringSimilarity myStringSimilarity
  • Constructor Details

    • HapiStringSimilarity

      public HapiStringSimilarity(info.debatty.java.stringsimilarity.interfaces.NormalizedStringSimilarity theStringSimilarity)
  • Method Details

    • similarity

      public double similarity(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBase theLeftBase, org.hl7.fhir.instance.model.api.IBase theRightBase, boolean theExact)
      Specified by:
      similarity in interface IMdmFieldSimilarity