Skip to content

Commit 8688b5b

Browse files
committedMar 7, 2023
chore: allow serialization on medical technology
1 parent 2669043 commit 8688b5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/main/kotlin/entity/medicaltechnology/MedicalTechnology.kt

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
package entity.medicaltechnology
1010

1111
import entity.zone.RoomID
12+
import kotlinx.serialization.Serializable
1213

1314
/**
1415
* Describe a medical technology used inside the operating block.
@@ -17,6 +18,7 @@ import entity.zone.RoomID
1718
* A medical technology can be associated to a [entity.zone.Room] through its [roomId].
1819
* Inside the room the technology can be used and its usage is tracked by [isInUse].
1920
*/
21+
@Serializable
2022
data class MedicalTechnology(
2123
val id: MedicalTechnologyID,
2224
val name: String,
@@ -43,6 +45,7 @@ data class MedicalTechnology(
4345
* Identification of a [MedicalTechnology].
4446
* @param[value] the id.
4547
*/
48+
@Serializable
4649
data class MedicalTechnologyID(val value: String) {
4750
init {
4851
// Constructor validation: The id must not be empty
@@ -53,6 +56,7 @@ data class MedicalTechnologyID(val value: String) {
5356
/**
5457
* The type of [MedicalTechnology].
5558
*/
59+
@Serializable
5660
enum class MedicalTechnologyType {
5761
/** Endoscope technology. */
5862
ENDOSCOPE,

0 commit comments

Comments
 (0)