
Package ca.uhn.fhir.mdm.rules.matcher
Enum MdmMatcherEnum
- All Implemented Interfaces:
Serializable
,Comparable<MdmMatcherEnum>
Enum for holding all the known FHIR Element matchers that we support in HAPI. The string matchers first
encode the string using an Apache Encoder before comparing them.
https://commons.apache.org/proper/commons-codec/userguide.html
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this matcher supports checks on empty fieldsboolean
match
(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBase theLeftBase, org.hl7.fhir.instance.model.api.IBase theRightBase, boolean theExact, String theIdentifierSystem) Determines whether two FHIR elements match according using the providedIMdmFieldMatcher
static MdmMatcherEnum
Returns the enum constant of this type with the specified name.static MdmMatcherEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CAVERPHONE1
-
CAVERPHONE2
-
COLOGNE
-
DOUBLE_METAPHONE
-
MATCH_RATING_APPROACH
-
METAPHONE
-
NYSIIS
-
REFINED_SOUNDEX
-
SOUNDEX
-
NICKNAME
-
STRING
-
SUBSTRING
-
DATE
-
NAME_ANY_ORDER
-
NAME_FIRST_AND_LAST
-
IDENTIFIER
-
EMPTY_FIELD
-
EXTENSION_ANY_ORDER
-
NUMERIC
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
match
public boolean match(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBase theLeftBase, org.hl7.fhir.instance.model.api.IBase theRightBase, boolean theExact, String theIdentifierSystem) Determines whether two FHIR elements match according using the providedIMdmFieldMatcher
- Parameters:
theFhirContext
-theLeftBase
- left FHIR element to comparetheRightBase
- right FHIR element to comparetheExact
- used by String matchers. If "false" then the string is normalized (case, accents) before comparing. If "true" then an exact string comparison is performed.theIdentifierSystem
- used optionally by the IDENTIFIER matcher, when present, only matches the identifiers if they belong to this system.- Returns:
-
isMatchingEmptyFields
Checks if this matcher supports checks on empty fields- Returns:
- Returns true of this matcher supports empty fields and false otherwise
-