Class MdmGoldenResourceFindingSvc

java.lang.Object
ca.uhn.fhir.jpa.mdm.svc.candidate.MdmGoldenResourceFindingSvc

@Service public class MdmGoldenResourceFindingSvc extends Object
  • Constructor Details

  • Method Details

    • findGoldenResourceCandidates

      public CandidateList findGoldenResourceCandidates(org.hl7.fhir.instance.model.api.IAnyResource theResource)
      Given an incoming IBaseResource, limited to the supported MDM type, return a list of MatchedGoldenResourceCandidate indicating possible candidates for a matching Golden Resource. Uses several separate methods for finding candidates:

      0. First, check the incoming Resource for an EID. If it is present, and we can find a Golden Resource with this EID, it automatically matches. 1. First, check link table for any entries where this baseresource is the source of a Golden Resource. If found, return. 2. If none are found, attempt to find Golden Resources which link to this theResource. 3. If none are found, attempt to find Golden Resources similar to our incoming resource based on the MDM rules and field matchers. 4. If none are found, attempt to find Golden Resources that are linked to sources that are similar to our incoming resource based on the MDM rules and field matchers.

      Parameters:
      theResource - the IBaseResource we are attempting to find matching candidate Golden Resources for.
      Returns:
      A list of MatchedGoldenResourceCandidate indicating all potential Golden Resource matches.
    • getGoldenResourceFromMatchedGoldenResourceCandidate

      public org.hl7.fhir.instance.model.api.IAnyResource getGoldenResourceFromMatchedGoldenResourceCandidate(MatchedGoldenResourceCandidate theMatchedGoldenResourceCandidate, String theResourceType)