Class MdmSubmitSvcImpl

java.lang.Object
ca.uhn.fhir.mdm.svc.MdmSubmitSvcImpl
All Implemented Interfaces:
IMdmSubmitSvc

public class MdmSubmitSvcImpl extends Object implements IMdmSubmitSvc
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 calls
    invalid reference
    #submitSourceResourceTypeToMdm(String, String)
    with the type pre-populated.
    long
    submitPractitionerTypeToMdm(String theCriteria, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
    Convenience method that calls
    invalid reference
    #submitSourceResourceTypeToMdm(String, String)
    with the type pre-populated.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • 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 interface IMdmSubmitSvc
      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 interface IMdmSubmitSvc
      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 calls
      invalid reference
      #submitSourceResourceTypeToMdm(String, String)
      with the type pre-populated.
      Specified by:
      submitPractitionerTypeToMdm in interface IMdmSubmitSvc
      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 calls
      invalid reference
      #submitSourceResourceTypeToMdm(String, String)
      with the type pre-populated.
      Specified by:
      submitPatientTypeToMdm in interface IMdmSubmitSvc
      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 interface IMdmSubmitSvc
      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

      public void setMdmSettings(IMdmSettings theMdmSettings)
      Description copied from interface: IMdmSubmitSvc
      This setter exists to allow imported modules to override settings.
      Specified by:
      setMdmSettings in interface IMdmSubmitSvc
      Parameters:
      theMdmSettings - Settings to set
    • setBufferSize

      public void setBufferSize(int myBufferSize)
      Description copied from interface: IMdmSubmitSvc
      Buffer size for fetching results to add to MDM queue.
      Specified by:
      setBufferSize in interface IMdmSubmitSvc
      Parameters:
      myBufferSize -