Doc updates and flip logic order in SearchParamSVc

This commit is contained in:
Tadgh 2020-08-01 13:16:50 -07:00
parent ad887428b3
commit ac5d261a7f
2 changed files with 4 additions and 6 deletions

View File

@ -32,7 +32,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import java.util.List; import java.util.List;
/** /**
* This class is in charge of Clearing out existing EMPI links, as well as deleting all persons related to those EMPI Links. * This class is responsible for clearing out existing EMPI links, as well as deleting all persons related to those EMPI Links.
* *
*/ */
public class EmpiResetSvcImpl implements IEmpiResetSvc { public class EmpiResetSvcImpl implements IEmpiResetSvc {

View File

@ -23,7 +23,6 @@ package ca.uhn.fhir.jpa.empi.svc;
import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.RuntimeResourceDefinition; import ca.uhn.fhir.context.RuntimeResourceDefinition;
import ca.uhn.fhir.context.RuntimeSearchParam; import ca.uhn.fhir.context.RuntimeSearchParam;
import ca.uhn.fhir.jpa.api.IDaoRegistry;
import ca.uhn.fhir.jpa.api.dao.DaoRegistry; import ca.uhn.fhir.jpa.api.dao.DaoRegistry;
import ca.uhn.fhir.jpa.api.dao.IFhirResourceDao; import ca.uhn.fhir.jpa.api.dao.IFhirResourceDao;
import ca.uhn.fhir.jpa.dao.ISearchBuilder; import ca.uhn.fhir.jpa.dao.ISearchBuilder;
@ -35,7 +34,6 @@ import ca.uhn.fhir.jpa.searchparam.registry.ISearchParamRegistry;
import ca.uhn.fhir.rest.server.util.ISearchParamRetriever; import ca.uhn.fhir.rest.server.util.ISearchParamRetriever;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.hl7.fhir.instance.model.api.IBaseResource; import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.r4.model.Patient;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -83,10 +81,10 @@ public class EmpiSearchParamSvc implements ISearchParamRetriever {
*/ */
public SearchParameterMap getSearchParameterMapFromCriteria(String theTargetType, String theCriteria) { public SearchParameterMap getSearchParameterMapFromCriteria(String theTargetType, String theCriteria) {
SearchParameterMap spMap; SearchParameterMap spMap;
if (!StringUtils.isBlank(theCriteria)) { if (StringUtils.isBlank(theCriteria)) {
spMap = mapFromCriteria(theTargetType, theCriteria);
} else {
spMap = new SearchParameterMap(); spMap = new SearchParameterMap();
} else {
spMap = mapFromCriteria(theTargetType, theCriteria);
} }
return spMap; return spMap;
} }