Package ca.uhn.fhir.mdm.util
Class MdmPartitionHelper
java.lang.Object
ca.uhn.fhir.mdm.util.MdmPartitionHelper
-
Constructor Summary
ConstructorDescriptionMdmPartitionHelper
(MessageHelper theMessageHelper, IMdmSettings theMdmSettings) -
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.interceptor.model.RequestPartitionId
getRequestPartitionIdForNewGoldenResources
(org.hl7.fhir.instance.model.api.IAnyResource theSourceResource) ca.uhn.fhir.interceptor.model.RequestPartitionId
getRequestPartitionIdFromResourceForSearch
(org.hl7.fhir.instance.model.api.IAnyResource theResource) Generates the request partition id for a mdm candidate search for a given resource.void
validateMdmResourcesPartitionMatches
(org.hl7.fhir.instance.model.api.IAnyResource theFromResource, org.hl7.fhir.instance.model.api.IAnyResource theToResource) Checks the partition of the two resources are in compliance with the settings If the mdm settings states mdm resources that only matches against resources in the same partition, validate the resources have the same partition This is used to check in merging golden resources as well as when creating a link between source and golden resource
-
Constructor Details
-
MdmPartitionHelper
-
-
Method Details
-
validateMdmResourcesPartitionMatches
public void validateMdmResourcesPartitionMatches(org.hl7.fhir.instance.model.api.IAnyResource theFromResource, org.hl7.fhir.instance.model.api.IAnyResource theToResource) Checks the partition of the two resources are in compliance with the settings If the mdm settings states mdm resources that only matches against resources in the same partition, validate the resources have the same partition This is used to check in merging golden resources as well as when creating a link between source and golden resource- Parameters:
theFromResource
-theToResource
-
-
getRequestPartitionIdFromResourceForSearch
public ca.uhn.fhir.interceptor.model.RequestPartitionId getRequestPartitionIdFromResourceForSearch(org.hl7.fhir.instance.model.api.IAnyResource theResource) Generates the request partition id for a mdm candidate search for a given resource. If the system is configured to search across all partition for matches, this will return all partition and if not, this function will return the request partition id of the source resource- Parameters:
theResource
-- Returns:
- The RequestPartitionId that should be used for the candidate search for the given resource
-
getRequestPartitionIdForNewGoldenResources
public ca.uhn.fhir.interceptor.model.RequestPartitionId getRequestPartitionIdForNewGoldenResources(org.hl7.fhir.instance.model.api.IAnyResource theSourceResource)
-