From 9d7df0cdda3bb8b0e38462455ded9ddbadc8aab6 Mon Sep 17 00:00:00 2001 From: Tadgh Date: Tue, 14 Jul 2020 14:49:16 -0700 Subject: [PATCH] wip --- .../main/java/ca/uhn/fhir/empi/provider/EmpiProviderR4.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-server-empi/src/main/java/ca/uhn/fhir/empi/provider/EmpiProviderR4.java b/hapi-fhir-server-empi/src/main/java/ca/uhn/fhir/empi/provider/EmpiProviderR4.java index 3e12b5f8fa9..9ef0259d97b 100644 --- a/hapi-fhir-server-empi/src/main/java/ca/uhn/fhir/empi/provider/EmpiProviderR4.java +++ b/hapi-fhir-server-empi/src/main/java/ca/uhn/fhir/empi/provider/EmpiProviderR4.java @@ -166,9 +166,11 @@ public class EmpiProviderR4 extends BaseEmpiProvider { return (Parameters) myEmpiLinkUpdaterSvc.notDuplicatePerson(person, target, createEmpiContext(theRequestDetails)); } - //TODO accept a search string, parse it to make search parameters, and then submit those as the search. @Operation(name = ProviderConstants.EMPI_BATCH_RUN, idempotent = true) - public void batchRunEmpi(@OperationParam(name= ProviderConstants.EMPI_BATCH_RUN_TARGET_TYPE, max=1) StringType theTargetType, ServletRequestDetails theRequestDetails) { + public void batchRunEmpi(@OperationParam(name= ProviderConstants.EMPI_BATCH_RUN_TARGET_TYPE, max=1) StringType theTargetType, + @OperationParam(name= ProviderConstants.EMPI_BATCH_RUN_TARGET_TYPE, max=1) StringType theQueryString, + ServletRequestDetails theRequestDetails) { + if (theTargetType == null) { myEmpiBatchSvc.runEmpiOnAllTargets(); } else {