Package ca.uhn.fhir.mdm.provider
Class MdmProviderDstu3Plus
java.lang.Object
ca.uhn.fhir.mdm.provider.BaseMdmProvider
ca.uhn.fhir.mdm.provider.MdmProviderDstu3Plus
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
Fields inherited from class ca.uhn.fhir.mdm.provider.BaseMdmProvider
myFhirContext, myMdmControllerSvc
-
Constructor Summary
ConstructorDescriptionMdmProviderDstu3Plus
(ca.uhn.fhir.context.FhirContext theFhirContext, IMdmControllerSvc theMdmControllerSvc, MdmControllerHelper theMdmHelper, IMdmSubmitSvc theMdmSubmitSvc, ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theIInterceptorBroadcaster, IMdmSettings theIMdmSettings) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IBaseParameters
buildMdmOutParametersWithCount
(long theCount) Helper function to build the out-parameters for all batch MDM operations.org.hl7.fhir.instance.model.api.IBaseParameters
clearMdmLinks
(List<org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theResourceNames, org.hl7.fhir.instance.model.api.IPrimitiveType<BigDecimal> theBatchSize, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) org.hl7.fhir.instance.model.api.IBaseResource
createLink
(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, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) org.hl7.fhir.instance.model.api.IBaseParameters
getDuplicateGoldenResources
(org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theOffset, org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theCount, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceType) org.hl7.fhir.instance.model.api.IBaseBundle
match
(org.hl7.fhir.instance.model.api.IAnyResource thePatient, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Searches for matches for the provided patient resourceorg.hl7.fhir.instance.model.api.IBaseParameters
mdmBatchOnAllSourceResources
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceType, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCriteria, org.hl7.fhir.instance.model.api.IPrimitiveType<BigDecimal> theBatchSize, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) org.hl7.fhir.instance.model.api.IBaseParameters
mdmBatchPatientInstance
(org.hl7.fhir.instance.model.api.IIdType theIdParam, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) org.hl7.fhir.instance.model.api.IBaseParameters
mdmBatchPatientType
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCriteria, org.hl7.fhir.instance.model.api.IPrimitiveType<BigDecimal> theBatchSize, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequest) org.hl7.fhir.instance.model.api.IBaseParameters
mdmBatchPractitionerInstance
(org.hl7.fhir.instance.model.api.IIdType theIdParam, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) org.hl7.fhir.instance.model.api.IBaseParameters
mdmBatchPractitionerType
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCriteria, org.hl7.fhir.instance.model.api.IPrimitiveType<BigDecimal> theBatchSize, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequest) org.hl7.fhir.instance.model.api.IBaseResource
mergeGoldenResources
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theFromGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theToGoldenResourceId, org.hl7.fhir.instance.model.api.IAnyResource theMergedResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) org.hl7.fhir.instance.model.api.IBaseParameters
notDuplicate
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceId, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) org.hl7.fhir.instance.model.api.IBaseParameters
queryLinks
(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, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theLinkSource, org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theOffset, org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theCount, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theSort, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceType) org.hl7.fhir.instance.model.api.IBaseBundle
serverMatch
(org.hl7.fhir.instance.model.api.IAnyResource theResource, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceType, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Searches for matches for hte provided resource.org.hl7.fhir.instance.model.api.IBaseResource
updateLink
(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, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) Methods inherited from class ca.uhn.fhir.mdm.provider.BaseMdmProvider
addPagingParameters, convertToStringsIncludingCommaDelimitedIfNotNull, createMdmContext, extractStringOrNull, parametersFromMdmLinkRevisions, parametersFromMdmLinks, validateCreateLinkParameters, validateMdmLinkHistoryParameters, validateMergeParameters, validateNotDuplicateParameters, validateUpdateLinkParameters
-
Field Details
-
DEFAULT_PAGE_SIZE
- See Also:
-
MAX_PAGE_SIZE
- See Also:
-
-
Constructor Details
-
MdmProviderDstu3Plus
public MdmProviderDstu3Plus(ca.uhn.fhir.context.FhirContext theFhirContext, IMdmControllerSvc theMdmControllerSvc, MdmControllerHelper theMdmHelper, IMdmSubmitSvc theMdmSubmitSvc, ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theIInterceptorBroadcaster, IMdmSettings theIMdmSettings) ConstructorNote that this is not a spring bean. Any necessary injections should happen in the constructor
-
-
Method Details
-
match
public org.hl7.fhir.instance.model.api.IBaseBundle match(org.hl7.fhir.instance.model.api.IAnyResource thePatient, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Searches for matches for the provided patient resource- Parameters:
thePatient
- - the patient resourcetheRequestDetails
- - the request details- Returns:
- - any matches to the provided patient resource
-
serverMatch
public org.hl7.fhir.instance.model.api.IBaseBundle serverMatch(org.hl7.fhir.instance.model.api.IAnyResource theResource, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceType, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Searches for matches for hte provided resource.- Parameters:
theResource
- - the resource to match ontheResourceType
- - the resource typetheRequestDetails
- - the request details- Returns:
- - any matches to the provided resource
-
mergeGoldenResources
public org.hl7.fhir.instance.model.api.IBaseResource mergeGoldenResources(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theFromGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theToGoldenResourceId, org.hl7.fhir.instance.model.api.IAnyResource theMergedResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) -
updateLink
public org.hl7.fhir.instance.model.api.IBaseResource updateLink(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, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) -
createLink
public org.hl7.fhir.instance.model.api.IBaseResource createLink(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, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) -
clearMdmLinks
public org.hl7.fhir.instance.model.api.IBaseParameters clearMdmLinks(List<org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theResourceNames, org.hl7.fhir.instance.model.api.IPrimitiveType<BigDecimal> theBatchSize, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) -
queryLinks
public org.hl7.fhir.instance.model.api.IBaseParameters queryLinks(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, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theLinkSource, org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theOffset, org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theCount, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theSort, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceType) -
getDuplicateGoldenResources
public org.hl7.fhir.instance.model.api.IBaseParameters getDuplicateGoldenResources(org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theOffset, org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theCount, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceType) -
notDuplicate
public org.hl7.fhir.instance.model.api.IBaseParameters notDuplicate(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theGoldenResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceId, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) -
mdmBatchOnAllSourceResources
public org.hl7.fhir.instance.model.api.IBaseParameters mdmBatchOnAllSourceResources(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theResourceType, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCriteria, org.hl7.fhir.instance.model.api.IPrimitiveType<BigDecimal> theBatchSize, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) -
mdmBatchPatientInstance
public org.hl7.fhir.instance.model.api.IBaseParameters mdmBatchPatientInstance(org.hl7.fhir.instance.model.api.IIdType theIdParam, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) -
mdmBatchPatientType
public org.hl7.fhir.instance.model.api.IBaseParameters mdmBatchPatientType(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCriteria, org.hl7.fhir.instance.model.api.IPrimitiveType<BigDecimal> theBatchSize, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequest) -
mdmBatchPractitionerInstance
public org.hl7.fhir.instance.model.api.IBaseParameters mdmBatchPractitionerInstance(org.hl7.fhir.instance.model.api.IIdType theIdParam, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) -
mdmBatchPractitionerType
public org.hl7.fhir.instance.model.api.IBaseParameters mdmBatchPractitionerType(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCriteria, org.hl7.fhir.instance.model.api.IPrimitiveType<BigDecimal> theBatchSize, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequest) -
buildMdmOutParametersWithCount
public org.hl7.fhir.instance.model.api.IBaseParameters buildMdmOutParametersWithCount(long theCount) Helper function to build the out-parameters for all batch MDM operations.
-