From be696a44a9762a4ea47d664324bc7fcf8d787c57 Mon Sep 17 00:00:00 2001 From: Siddharth Vaish Date: Tue, 12 Nov 2024 15:05:10 +0530 Subject: [PATCH] OZ-624: Fix `EncounterHandler` & `TaskProcessor` Spring beans (#45) --- .../eip/openmrs/senaite/handlers/openmrs/EncounterHandler.java | 2 ++ .../ozonehis/eip/openmrs/senaite/processors/TaskProcessor.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/senaite-openmrs/src/main/java/com/ozonehis/eip/openmrs/senaite/handlers/openmrs/EncounterHandler.java b/senaite-openmrs/src/main/java/com/ozonehis/eip/openmrs/senaite/handlers/openmrs/EncounterHandler.java index 5f60034..04933a0 100644 --- a/senaite-openmrs/src/main/java/com/ozonehis/eip/openmrs/senaite/handlers/openmrs/EncounterHandler.java +++ b/senaite-openmrs/src/main/java/com/ozonehis/eip/openmrs/senaite/handlers/openmrs/EncounterHandler.java @@ -11,6 +11,7 @@ import ca.uhn.fhir.rest.client.api.IGenericClient; import java.util.Collections; import lombok.AllArgsConstructor; +import lombok.NoArgsConstructor; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.hl7.fhir.r4.model.Bundle; @@ -24,6 +25,7 @@ @Slf4j @Setter @AllArgsConstructor +@NoArgsConstructor @Component public class EncounterHandler { diff --git a/senaite-openmrs/src/main/java/com/ozonehis/eip/openmrs/senaite/processors/TaskProcessor.java b/senaite-openmrs/src/main/java/com/ozonehis/eip/openmrs/senaite/processors/TaskProcessor.java index 5eb4b22..0998e8e 100644 --- a/senaite-openmrs/src/main/java/com/ozonehis/eip/openmrs/senaite/processors/TaskProcessor.java +++ b/senaite-openmrs/src/main/java/com/ozonehis/eip/openmrs/senaite/processors/TaskProcessor.java @@ -21,6 +21,7 @@ import java.util.ArrayList; import java.util.List; import lombok.Getter; +import lombok.NoArgsConstructor; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.apache.camel.Exchange; @@ -40,6 +41,7 @@ @Slf4j @Setter @Getter +@NoArgsConstructor @Component public class TaskProcessor implements Processor {