Skip to content

Commit

Permalink
chore: add new handler to kafka client
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-acampora committed Mar 30, 2023
1 parent 0358e41 commit fc1cb60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/kotlin/infrastructure/event/KafkaClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ package infrastructure.event

import application.controller.MedicalDeviceController
import application.controller.PatientDataController
import application.controller.SurgeryBookingController
import application.controller.SurgicalProcessController
import application.handler.EventHandler
import application.handler.EventHandlers
Expand Down Expand Up @@ -50,7 +51,7 @@ class KafkaClient(private val provider: ManagerProvider) {

val patientDataController = PatientDataController(provider.patientMedicalDataDatabaseManager)

// val surgeryBookingController = SurgeryBookingController(provider.surgeryBookingDigitalTwinManager)
val surgeryBookingController = SurgeryBookingController(provider.surgeryBookingDigitalTwinManager)

eventHandlers = listOf(
EventHandlers.MedicalDeviceUsageEventHandler(medicalDeviceController),
Expand All @@ -59,6 +60,10 @@ class KafkaClient(private val provider: ManagerProvider) {
EventHandlers.BodyTemperatureUpdateEventHandler(patientDataController),
EventHandlers.DiastolicPressureUpdateEventHandler(patientDataController),
EventHandlers.SystolicPressureUpdateEventHandler(patientDataController),
EventHandlers.RespiratoryRateUpdateEventHandler(patientDataController),
EventHandlers.SaturationUpdateEventHandler(patientDataController),
EventHandlers.HeartbeatUpdateEventHandler(patientDataController),
EventHandlers.PatientTrackedEventHandler(surgicalProcessController, surgeryBookingController)
)
}

Expand Down

0 comments on commit fc1cb60

Please sign in to comment.