File tree 1 file changed +4
-0
lines changed
src/main/kotlin/entity/medicaltechnology
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 9
9
package entity.medicaltechnology
10
10
11
11
import entity.zone.RoomID
12
+ import kotlinx.serialization.Serializable
12
13
13
14
/* *
14
15
* Describe a medical technology used inside the operating block.
@@ -17,6 +18,7 @@ import entity.zone.RoomID
17
18
* A medical technology can be associated to a [entity.zone.Room] through its [roomId].
18
19
* Inside the room the technology can be used and its usage is tracked by [isInUse].
19
20
*/
21
+ @Serializable
20
22
data class MedicalTechnology (
21
23
val id : MedicalTechnologyID ,
22
24
val name : String ,
@@ -43,6 +45,7 @@ data class MedicalTechnology(
43
45
* Identification of a [MedicalTechnology].
44
46
* @param[value] the id.
45
47
*/
48
+ @Serializable
46
49
data class MedicalTechnologyID (val value : String ) {
47
50
init {
48
51
// Constructor validation: The id must not be empty
@@ -53,6 +56,7 @@ data class MedicalTechnologyID(val value: String) {
53
56
/* *
54
57
* The type of [MedicalTechnology].
55
58
*/
59
+ @Serializable
56
60
enum class MedicalTechnologyType {
57
61
/* * Endoscope technology. */
58
62
ENDOSCOPE ,
You can’t perform that action at this time.
0 commit comments