
Package ca.uhn.fhir.mdm.svc
Class MdmSubmitSvcImpl
java.lang.Object
ca.uhn.fhir.mdm.svc.MdmSubmitSvcImpl
- All Implemented Interfaces:
IMdmSubmitSvc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBufferSize(int myBufferSize) Buffer size for fetching results to add to MDM queue.voidsetMdmSettings(IMdmSettings theMdmSettings) This setter exists to allow imported modules to override settings.longsubmitAllSourceTypesToMdm(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Submit all eligible resources for MDM processing.longsubmitPatientTypeToMdm(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Convenience method that callswith the type pre-populated.invalid reference
#submitSourceResourceTypeToMdm(String, String)longsubmitPractitionerTypeToMdm(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Convenience method that callswith the type pre-populated.invalid reference
#submitSourceResourceTypeToMdm(String, String)longsubmitSourceResourceToMdm(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Given an ID and a source resource type valid for MDM, manually submit the given ID for MDM processing.longsubmitSourceResourceTypeToMdm(String theSourceResourceType, String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Given a type and a search criteria, submit all found resources for MDM processing.
-
Field Details
-
DEFAULT_BUFFER_SIZE
- See Also:
-
-
Constructor Details
-
MdmSubmitSvcImpl
public MdmSubmitSvcImpl()
-
-
Method Details
-
submitAllSourceTypesToMdm
@Transactional public long submitAllSourceTypesToMdm(@Nullable String theCriteria, @Nonnull ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:IMdmSubmitSvcSubmit all eligible resources for MDM processing.- Specified by:
submitAllSourceTypesToMdmin interfaceIMdmSubmitSvc- Parameters:
theCriteria- The FHIR search critieria for filtering the resources to be submitted for MDM processing. NOTE: When using this function, the criteria supplied must be valid for all MDM types. e.g. , if you run this with the criteria birthDate=1990-06-28, it will fail, as Practitioners do not have a birthday. Use with caution.- Returns:
-
submitSourceResourceTypeToMdm
@Transactional public long submitSourceResourceTypeToMdm(String theSourceResourceType, @Nullable String theCriteria, @Nonnull ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:IMdmSubmitSvcGiven a type and a search criteria, submit all found resources for MDM processing.- Specified by:
submitSourceResourceTypeToMdmin interfaceIMdmSubmitSvc- Parameters:
theSourceResourceType- the resource type that you wish to execute a search over for submission to MDM.theCriteria- The FHIR search critieria for filtering the resources to be submitted for MDM processing..- Returns:
- the number of resources submitted for MDM processing.
-
submitPractitionerTypeToMdm
@Transactional public long submitPractitionerTypeToMdm(@Nullable String theCriteria, @Nonnull ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:IMdmSubmitSvcConvenience method that callswith the type pre-populated.invalid reference
#submitSourceResourceTypeToMdm(String, String)- Specified by:
submitPractitionerTypeToMdmin interfaceIMdmSubmitSvc- Parameters:
theCriteria- The FHIR search critieria for filtering the resources to be submitted for MDM processing.- Returns:
- the number of resources submitted for MDM processing.
-
submitPatientTypeToMdm
@Transactional public long submitPatientTypeToMdm(@Nullable String theCriteria, @Nonnull ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:IMdmSubmitSvcConvenience method that callswith the type pre-populated.invalid reference
#submitSourceResourceTypeToMdm(String, String)- Specified by:
submitPatientTypeToMdmin interfaceIMdmSubmitSvc- Parameters:
theCriteria- The FHIR search critieria for filtering the resources to be submitted for MDM processing.- Returns:
- the number of resources submitted for MDM processing.
-
submitSourceResourceToMdm
@Transactional public long submitSourceResourceToMdm(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:IMdmSubmitSvcGiven an ID and a source resource type valid for MDM, manually submit the given ID for MDM processing.- Specified by:
submitSourceResourceToMdmin interfaceIMdmSubmitSvc- Parameters:
theId- the ID of the resource to process for MDM.- Returns:
- the constant `1`, as if this function returns successfully, it will have processed one resource for MDM.
-
setMdmSettings
Description copied from interface:IMdmSubmitSvcThis setter exists to allow imported modules to override settings.- Specified by:
setMdmSettingsin interfaceIMdmSubmitSvc- Parameters:
theMdmSettings- Settings to set
-
setBufferSize
Description copied from interface:IMdmSubmitSvcBuffer size for fetching results to add to MDM queue.- Specified by:
setBufferSizein interfaceIMdmSubmitSvc- Parameters:
myBufferSize-
-