
Package ca.uhn.fhir.mdm.provider
Class MdmControllerHelper
java.lang.Object
ca.uhn.fhir.mdm.provider.MdmControllerHelper
-
Constructor Summary
ConstructorsConstructorDescriptionMdmControllerHelper(ca.uhn.fhir.context.FhirContext theFhirContext, ca.uhn.fhir.validation.IResourceLoader theResourceLoader, IMdmMatchFinderSvc theMdmMatchFinderSvc, IMdmSettings theMdmSettings, MessageHelper theMessageHelper, IRequestPartitionHelperSvc theRequestPartitionHelperSvc) -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IAnyResourcegetLatestGoldenResourceFromIdOrThrowException(String theParamName, String theGoldenResourceId) org.hl7.fhir.instance.model.api.IAnyResourcegetLatestSourceFromIdOrThrowException(String theParamName, String theSourceId) org.hl7.fhir.instance.model.api.IBaseBundlegetMatchesAndPossibleMatchesForResource(org.hl7.fhir.instance.model.api.IAnyResource theResource, String theResourceType, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Helper method which will return a bundle of all Matches and Possible Matches.protected StringgetMatchGrade(MatchedTarget theTheMatchedTarget) protected org.hl7.fhir.instance.model.api.IAnyResourceloadResource(org.hl7.fhir.instance.model.api.IIdType theResourceId) org.hl7.fhir.instance.model.api.IBaseBackboneElementtoBundleEntrySearchComponent(BundleBuilder theBuilder, org.hl7.fhir.instance.model.api.IBaseBackboneElement theSearch, MatchedTarget theMatchedTarget) toJson(org.hl7.fhir.instance.model.api.IAnyResource theAnyResource) voidvalidateIsMdmManaged(String theName, org.hl7.fhir.instance.model.api.IAnyResource theResource) voidvalidateMergeResources(org.hl7.fhir.instance.model.api.IAnyResource theFromGoldenResource, org.hl7.fhir.instance.model.api.IAnyResource theToGoldenResource) voidvalidateSameVersion(org.hl7.fhir.instance.model.api.IAnyResource theResource, String theResourceId)
-
Constructor Details
-
MdmControllerHelper
@Autowired public MdmControllerHelper(ca.uhn.fhir.context.FhirContext theFhirContext, ca.uhn.fhir.validation.IResourceLoader theResourceLoader, IMdmMatchFinderSvc theMdmMatchFinderSvc, IMdmSettings theMdmSettings, MessageHelper theMessageHelper, IRequestPartitionHelperSvc theRequestPartitionHelperSvc)
-
-
Method Details
-
validateSameVersion
public void validateSameVersion(org.hl7.fhir.instance.model.api.IAnyResource theResource, String theResourceId) -
getLatestGoldenResourceFromIdOrThrowException
public org.hl7.fhir.instance.model.api.IAnyResource getLatestGoldenResourceFromIdOrThrowException(String theParamName, String theGoldenResourceId) -
getLatestSourceFromIdOrThrowException
public org.hl7.fhir.instance.model.api.IAnyResource getLatestSourceFromIdOrThrowException(String theParamName, String theSourceId) -
loadResource
protected org.hl7.fhir.instance.model.api.IAnyResource loadResource(org.hl7.fhir.instance.model.api.IIdType theResourceId) -
validateMergeResources
public void validateMergeResources(org.hl7.fhir.instance.model.api.IAnyResource theFromGoldenResource, org.hl7.fhir.instance.model.api.IAnyResource theToGoldenResource) -
toJson
-
validateIsMdmManaged
public void validateIsMdmManaged(String theName, org.hl7.fhir.instance.model.api.IAnyResource theResource) -
getMatchesAndPossibleMatchesForResource
public org.hl7.fhir.instance.model.api.IBaseBundle getMatchesAndPossibleMatchesForResource(org.hl7.fhir.instance.model.api.IAnyResource theResource, String theResourceType, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Helper method which will return a bundle of all Matches and Possible Matches. -
toBundleEntrySearchComponent
public org.hl7.fhir.instance.model.api.IBaseBackboneElement toBundleEntrySearchComponent(BundleBuilder theBuilder, org.hl7.fhir.instance.model.api.IBaseBackboneElement theSearch, MatchedTarget theMatchedTarget) -
getMatchGrade
-