Skip to content

Commit

Permalink
fix lab on fhir to run on fhir2 1.10.0 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 authored Aug 10, 2023
1 parent d85cb01 commit 785cd41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
</profile>
</profiles>
<properties>
<fhir2Version>1.6.0</fhir2Version>
<fhir2Version>1.10.0</fhir2Version>
<restVersion>2.26.0</restVersion>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down

0 comments on commit 785cd41

Please sign in to comment.