Skip to content

Commit 8ed97af

Browse files
fix: correct patient on operating table event
1 parent 6607bd3 commit 8ed97af

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/kotlin/entities/process/ProcessData.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ object ProcessData {
2121
data class MedicalDeviceUsage(val medicalDeviceID: String, val processId: String)
2222

2323
/**
24-
* An information for the surgical process.
25-
* @param info the information of the process.
24+
* The event of patient on operating table.
2625
* @param processId the id of the surgical process.
2726
*/
28-
data class ProcessInfo(val info: String, val processId: String)
27+
data class PatientOnOperatingTable(val processId: String)
2928

3029
/**
3130
* The event of medical technology usage given its [medicalTechnologyID].

src/main/kotlin/infrastructure/digitaltwins/parser/UpdateEventParser.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import entities.process.PatientData.Saturation
2828
import entities.process.PatientData.SystolicPressure
2929
import entities.process.ProcessData
3030
import entities.process.ProcessData.MedicalTechnologyUsage
31-
import entities.process.ProcessData.ProcessInfo
3231
import infrastructure.digitaltwins.events.TwinProperties.DTModelID.MEDICAL_TECHNOLOGY_MODEL_ID
3332
import infrastructure.digitaltwins.events.TwinProperties.DTModelID.OPERATING_ROOM_MODEL_ID
3433
import infrastructure.digitaltwins.events.TwinProperties.DTModelID.PATIENT_MODEL_ID
@@ -117,7 +116,7 @@ class UpdateEventParser {
117116
IS_ON_OPERATING_TABLE.path -> {
118117
ProcessEvent(
119118
key = EventKey.PATIENT_ON_OB_EVENT,
120-
data = ProcessInfo("Patient on Operating Bed", updateTwinEvent.id),
119+
data = ProcessData.PatientOnOperatingTable(updateTwinEvent.id),
121120
dateTime = updateTwinEvent.eventDateTime
122121
)
123122
}

0 commit comments

Comments
 (0)