Class CandidateSearcher

java.lang.Object
ca.uhn.fhir.jpa.mdm.svc.candidate.CandidateSearcher

public class CandidateSearcher extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    CandidateSearcher(ca.uhn.fhir.jpa.api.dao.DaoRegistry theDaoRegistry, ca.uhn.fhir.mdm.api.IMdmSettings theMdmSettings, ca.uhn.fhir.mdm.svc.MdmSearchParamSvc theMdmSearchParamSvc)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    idOrType(org.hl7.fhir.instance.model.api.IAnyResource theResource, String theResourceType)
     
    Optional<ca.uhn.fhir.rest.api.server.IBundleProvider>
    search(String theResourceType, String theResourceCriteria)
    Perform a search for mdm candidates.
    Optional<ca.uhn.fhir.rest.api.server.IBundleProvider>
    search(String theResourceType, String theResourceCriteria, ca.uhn.fhir.interceptor.model.RequestPartitionId partitionId)
    Perform a search for mdm candidates.

    Methods inherited from class java.lang.Object

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

    • CandidateSearcher

      @Autowired public CandidateSearcher(ca.uhn.fhir.jpa.api.dao.DaoRegistry theDaoRegistry, ca.uhn.fhir.mdm.api.IMdmSettings theMdmSettings, ca.uhn.fhir.mdm.svc.MdmSearchParamSvc theMdmSearchParamSvc)
  • Method Details

    • search

      public Optional<ca.uhn.fhir.rest.api.server.IBundleProvider> search(String theResourceType, String theResourceCriteria, ca.uhn.fhir.interceptor.model.RequestPartitionId partitionId)
      Perform a search for mdm candidates.
      Parameters:
      theResourceType - the type of resources searched on
      theResourceCriteria - the criteria used to search for the candidates
      partitionId - the partition for the search
      Returns:
      Optional.empty() if >= IMdmSettings.getCandidateSearchLimit() candidates are found, otherwise return the bundle provider for the search results.
    • search

      public Optional<ca.uhn.fhir.rest.api.server.IBundleProvider> search(String theResourceType, String theResourceCriteria)
      Perform a search for mdm candidates.
      Parameters:
      theResourceType - the type of resources searched on
      theResourceCriteria - the criteria used to search for the candidates
      Returns:
      Optional.empty() if >= IMdmSettings.getCandidateSearchLimit() candidates are found, otherwise return the bundle provider for the search results.
    • idOrType

      public static String idOrType(org.hl7.fhir.instance.model.api.IAnyResource theResource, String theResourceType)