
Package ca.uhn.fhir.mdm.api
Interface IMdmSubmitSvc
- All Known Implementing Classes:
MdmSubmitSvcImpl
public interface IMdmSubmitSvc
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetBufferSize(int theBufferSize) 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) Deprecated, for removal: This API element is subject to removal in a future version.longsubmitPractitionerTypeToMdm(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Deprecated, for removal: This API element is subject to removal in a future version.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.
-
Method Details
-
submitAllSourceTypesToMdm
long submitAllSourceTypesToMdm(@Nullable String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Submit all eligible resources for MDM processing.- 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
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.- 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
@Deprecated(forRemoval=true, since="6.8.0") long submitPractitionerTypeToMdm(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Deprecated, for removal: This API element is subject to removal in a future version.Convenience method that callswith the type pre-populated.invalid reference
#submitSourceResourceTypeToMdm(String, String)- 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
@Deprecated(forRemoval=true, since="6.8.0") long submitPatientTypeToMdm(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Deprecated, for removal: This API element is subject to removal in a future version.Convenience method that callswith the type pre-populated.invalid reference
#submitSourceResourceTypeToMdm(String, String)- 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
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.- 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
This setter exists to allow imported modules to override settings.- Parameters:
theMdmSettings- Settings to set
-
setBufferSize
Buffer size for fetching results to add to MDM queue.- Parameters:
theBufferSize-
-