From 785cd4103be14f1e7bee882085c86876720e0ba8 Mon Sep 17 00:00:00 2001 From: Mutesasira Moses Date: Thu, 10 Aug 2023 18:35:53 +0100 Subject: [PATCH] fix lab on fhir to run on fhir2 1.10.0 (#35) --- .../module/labonfhir/api/event/LabCreationListener.java | 3 ++- pom.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/org/openmrs/module/labonfhir/api/event/LabCreationListener.java b/api/src/main/java/org/openmrs/module/labonfhir/api/event/LabCreationListener.java index a9d7486..4979b43 100644 --- a/api/src/main/java/org/openmrs/module/labonfhir/api/event/LabCreationListener.java +++ b/api/src/main/java/org/openmrs/module/labonfhir/api/event/LabCreationListener.java @@ -27,6 +27,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.openmrs.module.fhir2.api.search.param.TaskSearchParams; public abstract class LabCreationListener implements EventListener { @@ -86,7 +87,7 @@ public Bundle createLabBundle(Task task) { includes.add(new Include("Task:encounter")); includes.add(new Include("Task:based-on")); - IBundleProvider labBundle = fhirTaskService.searchForTasks(null, null, null, uuid, null, null, includes); + IBundleProvider labBundle = fhirTaskService.searchForTasks(new TaskSearchParams(null, null, null, uuid, null, null, includes)); Bundle transactionBundle = new Bundle(); transactionBundle.setType(Bundle.BundleType.TRANSACTION); diff --git a/pom.xml b/pom.xml index b431476..c3bda6d 100644 --- a/pom.xml +++ b/pom.xml @@ -239,7 +239,7 @@ - 1.6.0 + 1.10.0 2.26.0 1.8 1.8