Package ca.uhn.fhir.mdm.rules.svc
Class MdmResourceFieldMatcher
java.lang.Object
ca.uhn.fhir.mdm.rules.svc.MdmResourceFieldMatcher
This class is responsible for performing matching between raw-typed values of a left record and a right record.
-
Constructor Summary
ConstructorDescriptionMdmResourceFieldMatcher
(ca.uhn.fhir.context.FhirContext theFhirContext, IMatcherFactory theIMatcherFactory, MdmFieldMatchJson theMdmFieldMatchJson, MdmRulesJson theMdmRulesJson) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
match
(org.hl7.fhir.instance.model.api.IBaseResource theLeftResource, org.hl7.fhir.instance.model.api.IBaseResource theRightResource) Compares twoIBaseResource
s and determines if they match, using the algorithm defined in this object'sMdmFieldMatchJson
.
-
Constructor Details
-
MdmResourceFieldMatcher
public MdmResourceFieldMatcher(ca.uhn.fhir.context.FhirContext theFhirContext, IMatcherFactory theIMatcherFactory, MdmFieldMatchJson theMdmFieldMatchJson, MdmRulesJson theMdmRulesJson)
-
-
Method Details
-
match
public MdmMatchEvaluation match(org.hl7.fhir.instance.model.api.IBaseResource theLeftResource, org.hl7.fhir.instance.model.api.IBaseResource theRightResource) Compares twoIBaseResource
s and determines if they match, using the algorithm defined in this object'sMdmFieldMatchJson
.In this implementation, it determines whether a given field matches between two resources. Internally this is evaluated using FhirPath. If any of the elements of theLeftResource match any of the elements of theRightResource, will return true. Otherwise, false.
- Parameters:
theLeftResource
- the firstIBaseResource
theRightResource
- the secondIBaseResource
- Returns:
- A boolean indicating whether they match.
-
getResourceType
-
getResourcePath
-
getName
-