Class MdmGoldenResourceFindingSvc
java.lang.Object
ca.uhn.fhir.jpa.mdm.svc.candidate.MdmGoldenResourceFindingSvc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindGoldenResourceCandidates(org.hl7.fhir.instance.model.api.IAnyResource theResource) Given an incoming IBaseResource, limited to the supported MDM type, return a list ofMatchedGoldenResourceCandidateindicating possible candidates for a matching Golden Resource.org.hl7.fhir.instance.model.api.IAnyResourcegetGoldenResourceFromMatchedGoldenResourceCandidate(MatchedGoldenResourceCandidate theMatchedGoldenResourceCandidate, String theResourceType)
-
Constructor Details
-
MdmGoldenResourceFindingSvc
public MdmGoldenResourceFindingSvc()
-
-
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 ofMatchedGoldenResourceCandidateindicating 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- theIBaseResourcewe are attempting to find matching candidate Golden Resources for.- Returns:
- A list of
MatchedGoldenResourceCandidateindicating all potential Golden Resource matches.
-
getGoldenResourceFromMatchedGoldenResourceCandidate
public org.hl7.fhir.instance.model.api.IAnyResource getGoldenResourceFromMatchedGoldenResourceCandidate(MatchedGoldenResourceCandidate theMatchedGoldenResourceCandidate, String theResourceType)
-