Skip to content

Commit

Permalink
chore: create patient data
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-acampora committed Feb 15, 2023
1 parent a0f02ca commit 89cccf0
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/main/kotlin/entities/process/PatientData.kt
Original file line number Diff line number Diff line change
@@ -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<E>(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)
}

0 comments on commit 89cccf0

Please # to comment.