Class CandidateSearcher
java.lang.Object
ca.uhn.fhir.jpa.mdm.svc.candidate.CandidateSearcher
-
Constructor Summary
ConstructorsConstructorDescriptionCandidateSearcher(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 TypeMethodDescriptionstatic StringOptional<ca.uhn.fhir.rest.api.server.IBundleProvider>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.
-
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 ontheResourceCriteria- the criteria used to search for the candidatespartitionId- 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 ontheResourceCriteria- 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
-