Package ca.uhn.fhir.jpa.mdm.svc
Class MdmMatchLinkSvc
java.lang.Object
ca.uhn.fhir.jpa.mdm.svc.MdmMatchLinkSvc
MdmMatchLinkSvc is the entrypoint for HAPI's MDM system. An incoming resource can call
updateMdmLinksForMdmSource and the underlying MDM system will take care of matching it to a GoldenResource,
or creating a new GoldenResource if a suitable one was not found.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.mdm.model.MdmTransactionContextupdateMdmLinksForMdmSource(org.hl7.fhir.instance.model.api.IAnyResource theResource, ca.uhn.fhir.mdm.model.MdmTransactionContext theMdmTransactionContext) Given an MDM source (consisting of any supported MDM type), find a suitable Golden Resource candidate for them, or create one if one does not exist.
-
Constructor Details
-
MdmMatchLinkSvc
public MdmMatchLinkSvc()
-
-
Method Details
-
updateMdmLinksForMdmSource
@Transactional public ca.uhn.fhir.mdm.model.MdmTransactionContext updateMdmLinksForMdmSource(org.hl7.fhir.instance.model.api.IAnyResource theResource, ca.uhn.fhir.mdm.model.MdmTransactionContext theMdmTransactionContext) Given an MDM source (consisting of any supported MDM type), find a suitable Golden Resource candidate for them, or create one if one does not exist. Performs matching based on rules defined in mdm-rules.json. Does nothing if resource is determined to be not managed by MDM.- Parameters:
theResource- the incoming MDM source, which can be any supported MDM type.theMdmTransactionContext-- Returns:
- an
TransactionLogMessageswhich contains all informational messages related to MDM processing of this resource.
-