From e52a51bf790ce7cd0329d3456fa9dcf00d6a7a00 Mon Sep 17 00:00:00 2001 From: mozzy11 Date: Thu, 12 Sep 2024 17:07:51 +0300 Subject: [PATCH] fix preactitioner user --- .../openmrs/module/labonfhir/api/event/LabCreationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ff9d1aa..598ff42 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 @@ -107,7 +107,7 @@ public Bundle createLabBundle(Task task) { practitionerService.get(config.getLisUserUuid()); } catch (ResourceNotFoundException e) { labResources - .add(practitionerService.get(FhirUtils.referenceToId(task.getOwner().getReference()).get())); + .add(practitionerService.get(FhirUtils.referenceToId(task.getOwner().getReference()).get()).setActive(true)); } } for (IBaseResource r : labResources) {