Package ca.uhn.fhir.mdm.svc
Class MdmSubmitSvcImpl
java.lang.Object
ca.uhn.fhir.mdm.svc.MdmSubmitSvcImpl
- All Implemented Interfaces:
IMdmSubmitSvc
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setBufferSize
(int myBufferSize) Buffer size for fetching results to add to MDM queue.void
setMdmSettings
(IMdmSettings theMdmSettings) This setter exists to allow imported modules to override settings.long
submitAllSourceTypesToMdm
(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Submit all eligible resources for MDM processing.long
submitPatientTypeToMdm
(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Convenience method that callsinvalid reference
#submitSourceResourceTypeToMdm(String, String)
long
submitPractitionerTypeToMdm
(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Convenience method that callsinvalid reference
#submitSourceResourceTypeToMdm(String, String)
long
submitSourceResourceToMdm
(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.long
submitSourceResourceTypeToMdm
(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:IMdmSubmitSvc
Submit all eligible resources for MDM processing.- Specified by:
submitAllSourceTypesToMdm
in 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:IMdmSubmitSvc
Given a type and a search criteria, submit all found resources for MDM processing.- Specified by:
submitSourceResourceTypeToMdm
in 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:IMdmSubmitSvc
Convenience method that callsinvalid reference
#submitSourceResourceTypeToMdm(String, String)
- Specified by:
submitPractitionerTypeToMdm
in 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:IMdmSubmitSvc
Convenience method that callsinvalid reference
#submitSourceResourceTypeToMdm(String, String)
- Specified by:
submitPatientTypeToMdm
in 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:IMdmSubmitSvc
Given an ID and a source resource type valid for MDM, manually submit the given ID for MDM processing.- Specified by:
submitSourceResourceToMdm
in 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:IMdmSubmitSvc
This setter exists to allow imported modules to override settings.- Specified by:
setMdmSettings
in interfaceIMdmSubmitSvc
- Parameters:
theMdmSettings
- Settings to set
-
setBufferSize
Description copied from interface:IMdmSubmitSvc
Buffer size for fetching results to add to MDM queue.- Specified by:
setBufferSize
in interfaceIMdmSubmitSvc
- Parameters:
myBufferSize
-
-