Package ca.uhn.fhir.mdm.rules.similarity
Class HapiStringSimilarity
java.lang.Object
ca.uhn.fhir.mdm.rules.similarity.HapiStringSimilarity
- All Implemented Interfaces:
IMdmFieldSimilarity
- Direct Known Subclasses:
HapiNumericSimilarity
Similarity measure for two IBase fields whose similarity can be measured by their String representations.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final info.debatty.java.stringsimilarity.interfaces.NormalizedStringSimilarity
-
Constructor Summary
ConstructorDescriptionHapiStringSimilarity
(info.debatty.java.stringsimilarity.interfaces.NormalizedStringSimilarity theStringSimilarity) -
Method Summary
Modifier and TypeMethodDescriptiondouble
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)
-
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 interfaceIMdmFieldSimilarity
-