From 89cccf0ffa1f0077b7863c59f522033899f4bffa Mon Sep 17 00:00:00 2001 From: Andrea Acampora Date: Wed, 15 Feb 2023 23:44:37 +0100 Subject: [PATCH] chore: create patient data --- .../kotlin/entities/process/PatientData.kt | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/main/kotlin/entities/process/PatientData.kt diff --git a/src/main/kotlin/entities/process/PatientData.kt b/src/main/kotlin/entities/process/PatientData.kt new file mode 100644 index 0000000..f3ab78d --- /dev/null +++ b/src/main/kotlin/entities/process/PatientData.kt @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2023. Smart Operating Block + * + * Use of this source code is governed by an MIT-style + * license that can be found in the LICENSE file or at + * https://opensource.org/licenses/MIT. + */ + +package entities.process + +/** + * The object with all the data for the patient events. + */ +object PatientData { + + /** + * The [data] of the patient identified by [patientId]. + */ + data class PatientData(val patientId: String, val data: E) + + /** + * The body [temperature] of the patient. + */ + data class BodyTemperature(val temperature: Double) + + /** + * The [heartbeat] of the patient. + */ + data class Heartbeat(val heartbeat: Int) + + /** + * The diastolic [pressure] of the patient. + */ + data class DiastolicPressure(val pressure: Int) + + /** + * The systolic [pressure] of the patient. + */ + data class SystolicPressure(val pressure: Int) + + /** + * The [rate] of respiration the patient. + */ + data class RespiratoryRate(val rate: Int) + + /** + * The [saturation] of the patient oxygen. + */ + data class Saturation(val saturation: Int) +}