aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala
index 5e743b7..be51e4f 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala
@@ -16,12 +16,6 @@ sealed trait InterventionType {
object InterventionType {
- final case object RadiationTherapy extends InterventionType {
- val id: LongId[InterventionType] = LongId[InterventionType](1)
- val name: String = "Radiation therapy"
- val deliveryMethods: Set[DeliveryMethod] = commonMethods
- }
-
final case object Chemotherapy extends InterventionType {
val id: LongId[InterventionType] = LongId[InterventionType](2)
val name: String = "Chemotherapy"
@@ -40,12 +34,6 @@ object InterventionType {
val deliveryMethods: Set[DeliveryMethod] = commonMethods
}
- final case object Surgery extends InterventionType {
- val id: LongId[InterventionType] = LongId[InterventionType](5)
- val name: String = "Surgery"
- val deliveryMethods: Set[DeliveryMethod] = commonMethods
- }
-
final case object HormoneTherapy extends InterventionType {
val id: LongId[InterventionType] = LongId[InterventionType](6)
val name: String = "Hormone therapy"
@@ -152,7 +140,7 @@ object InterventionType {
}
}
- val commonMethods = Set[DeliveryMethod](
+ val commonMethods: Set[DeliveryMethod] = Set[DeliveryMethod](
IntravenousInfusionIV,
IntramuscularInjection,
SubcutaneousInjection,
@@ -166,11 +154,9 @@ object InterventionType {
)
val All: Map[LongId[InterventionType], InterventionType] = Map[LongId[InterventionType], InterventionType](
- LongId[InterventionType](1) -> RadiationTherapy,
LongId[InterventionType](2) -> Chemotherapy,
LongId[InterventionType](3) -> TargetedTherapy,
LongId[InterventionType](4) -> Immunotherapy,
- LongId[InterventionType](5) -> Surgery,
LongId[InterventionType](6) -> HormoneTherapy,
LongId[InterventionType](7) -> Other,
LongId[InterventionType](8) -> Radiation,