Class MdmResourceFieldMatcher


  • public class MdmResourceFieldMatcher
    extends Object
    This class is responsible for performing matching between raw-typed values of a left record and a right record.
    • Method Detail

      • match

        public MdmMatchEvaluation match​(org.hl7.fhir.instance.model.api.IBaseResource theLeftResource,
                                        org.hl7.fhir.instance.model.api.IBaseResource theRightResource)
        Compares two IBaseResources and determines if they match, using the algorithm defined in this object's MdmFieldMatchJson.

        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 first IBaseResource
        theRightResource - the second IBaseResource
        Returns:
        A boolean indicating whether they match.