Skip to content

Commit

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

import application.controller.MedicalDeviceController
import application.controller.PatientDataController
import application.controller.SurgicalProcessController
import application.handler.EventHandler
import application.handler.EventHandlers
Expand Down Expand Up @@ -46,14 +47,17 @@ class KafkaClient(private val provider: ManagerProvider) {
provider.processDatabaseManager,
provider.processDigitalTwinManager
)

val patientDataController = PatientDataController(provider.patientMedicalDataDatabaseManager)

// val surgeryBookingController = SurgeryBookingController(provider.surgeryBookingDigitalTwinManager)
//
// val patientDataController = PatientDataController(provider.patientMedicalDataDatabaseManager)

eventHandlers = listOf(
EventHandlers.MedicalDeviceUsageEventHandler(medicalDeviceController),
EventHandlers.MedicalTechnologyUsageEventHandler(medicalDeviceController),
EventHandlers.ProcessInfoEventHandler(surgicalProcessController)
EventHandlers.PatientOnOperatingTableEventHandler(surgicalProcessController),
EventHandlers.BodyTemperatureUpdateEventHandler(patientDataController),
EventHandlers.DiastolicPressureUpdateEventHandler(patientDataController),
)
}

Expand Down

0 comments on commit 3f9a44d

Please sign in to comment.