Package ca.uhn.fhir.mdm.provider
Class BaseMdmProvider
java.lang.Object
ca.uhn.fhir.mdm.provider.BaseMdmProvider
- Direct Known Subclasses:
MdmLinkHistoryProviderDstu3Plus
,MdmProviderDstu3Plus
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ca.uhn.fhir.context.FhirContext
protected final IMdmControllerSvc
-
Constructor Summary
ConstructorDescriptionBaseMdmProvider
(ca.uhn.fhir.context.FhirContext theFhirContext, IMdmControllerSvc theMdmControllerSvc) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPagingParameters
(org.hl7.fhir.instance.model.api.IBaseParameters theParameters, org.springframework.data.domain.Page<MdmLinkJson> theCurrentPage, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theServletRequestDetails, MdmPageRequest thePageRequest) convertToStringsIncludingCommaDelimitedIfNotNull
(List<org.hl7.fhir.instance.model.api.IPrimitiveType<String>> thePrimitiveTypeStrings) protected MdmTransactionContext
createMdmContext
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, MdmTransactionContext.OperationType theOperationType, String theResourceType) protected String
extractStringOrNull
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theString) protected void
parametersFromMdmLinkRevisions
(org.hl7.fhir.instance.model.api.IBaseParameters theRetVal, List<MdmLinkWithRevisionJson> theMdmLinkRevisions, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) protected org.hl7.fhir.instance.model.api.IBaseParameters
parametersFromMdmLinks
(org.springframework.data.domain.Page<MdmLinkJson> theMdmLinkStream, boolean theIncludeResultAndSource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theServletRequestDetails, MdmPageRequest thePageRequest) protected void
validateCreateLinkParameters
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theMatchResult) protected void
validateMdmLinkHistoryParameters
(List<org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theGoldenResourceIds, List<org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theSourceIds) protected void
validateMergeParameters
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theFromGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theToGoldenResourceId) protected void
validateNotDuplicateParameters
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceId) protected void
validateUpdateLinkParameters
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theMatchResult)
-
Field Details
-
myFhirContext
-
myMdmControllerSvc
-
-
Constructor Details
-
BaseMdmProvider
public BaseMdmProvider(ca.uhn.fhir.context.FhirContext theFhirContext, IMdmControllerSvc theMdmControllerSvc)
-
-
Method Details
-
validateMergeParameters
protected void validateMergeParameters(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theFromGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theToGoldenResourceId) -
validateMdmLinkHistoryParameters
protected void validateMdmLinkHistoryParameters(List<org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theGoldenResourceIds, List<org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theSourceIds) -
validateUpdateLinkParameters
protected void validateUpdateLinkParameters(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theMatchResult) -
validateNotDuplicateParameters
protected void validateNotDuplicateParameters(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceId) -
validateCreateLinkParameters
protected void validateCreateLinkParameters(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceId, @Nullable org.hl7.fhir.instance.model.api.IPrimitiveType<String> theMatchResult) -
createMdmContext
protected MdmTransactionContext createMdmContext(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, MdmTransactionContext.OperationType theOperationType, String theResourceType) -
convertToStringsIncludingCommaDelimitedIfNotNull
@Nonnull protected List<String> convertToStringsIncludingCommaDelimitedIfNotNull(List<org.hl7.fhir.instance.model.api.IPrimitiveType<String>> thePrimitiveTypeStrings) -
extractStringOrNull
protected String extractStringOrNull(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theString) -
parametersFromMdmLinks
protected org.hl7.fhir.instance.model.api.IBaseParameters parametersFromMdmLinks(org.springframework.data.domain.Page<MdmLinkJson> theMdmLinkStream, boolean theIncludeResultAndSource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theServletRequestDetails, MdmPageRequest thePageRequest) -
parametersFromMdmLinkRevisions
protected void parametersFromMdmLinkRevisions(org.hl7.fhir.instance.model.api.IBaseParameters theRetVal, List<MdmLinkWithRevisionJson> theMdmLinkRevisions, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) -
addPagingParameters
protected void addPagingParameters(org.hl7.fhir.instance.model.api.IBaseParameters theParameters, org.springframework.data.domain.Page<MdmLinkJson> theCurrentPage, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theServletRequestDetails, MdmPageRequest thePageRequest)
-