Skip to content

Commit

Permalink
FM2-646: Practitioner: support limiting search to users or providers
Browse files Browse the repository at this point in the history
  • Loading branch information
mogoodrich committed Oct 8, 2024
1 parent d43f85a commit 59ca983
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.openmrs.module.fhir2.api.search.SearchQueryInclude;
import org.openmrs.module.fhir2.api.search.TwoSearchQueryBundleProvider;
import org.openmrs.module.fhir2.api.search.param.PractitionerSearchParams;
import org.openmrs.module.fhir2.api.search.param.SearchParameterMap;
import org.openmrs.module.fhir2.api.translators.PractitionerTranslator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
Expand Down Expand Up @@ -107,8 +106,7 @@ public IBundleProvider searchForPractitioners(PractitionerSearchParams practitio
}

if (shouldSearchExplicitlyFor(practitionerSearchParams.getTag(), "user")) {
SearchParameterMap theParams = new SearchParameterMap();
userBundle = userService.searchForUsers(theParams);
userBundle = userService.searchForUsers(practitionerSearchParams.toSearchParameterMap());
}

if (providerBundle != null && userBundle != null) {
Expand Down

0 comments on commit 59ca983

Please sign in to comment.