aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala
diff options
context:
space:
mode:
authorKseniya Tomskikh <ktomskih@datamonsters.co>2017-09-27 17:10:59 +0700
committerKseniya Tomskikh <ktomskih@datamonsters.co>2017-09-27 17:10:59 +0700
commitf10c767bf16f14921a194936188c47dd138ffee7 (patch)
tree8f8d113ede15bfc764a2c161dbf4599372050083 /src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala
parent1fa90814e5930ad0bbe61ba5b082747781e1dc92 (diff)
downloadrest-query-f10c767bf16f14921a194936188c47dd138ffee7.tar.gz
rest-query-f10c767bf16f14921a194936188c47dd138ffee7.tar.bz2
rest-query-f10c767bf16f14921a194936188c47dd138ffee7.zip
PDSUI-2275 Review fixes
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala
index f5b486b..d0eefa9 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala
@@ -8,57 +8,57 @@ import xyz.driver.pdsuidomain.entities.InterventionType.DeliveryMethod._
sealed trait InterventionType {
val id: LongId[InterventionType]
val name: String
- val deliveryMethod: Set[DeliveryMethod]
+ val deliveryMethods: Set[DeliveryMethod]
}
object InterventionType {
final case object RadiationTherapy extends InterventionType {
- val id: LongId[InterventionType] = LongId[InterventionType](1)
- val name: String = "Radiation therapy"
- val deliveryMethod: Set[DeliveryMethod] = commonMethods
+ 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"
- val deliveryMethod: Set[DeliveryMethod] = commonMethods
+ val id: LongId[InterventionType] = LongId[InterventionType](2)
+ val name: String = "Chemotherapy"
+ val deliveryMethods: Set[DeliveryMethod] = commonMethods
}
final case object TargetedTherapy extends InterventionType {
- val id: LongId[InterventionType] = LongId[InterventionType](3)
- val name: String = "Targeted therapy"
- val deliveryMethod: Set[DeliveryMethod] = commonMethods
+ val id: LongId[InterventionType] = LongId[InterventionType](3)
+ val name: String = "Targeted therapy"
+ val deliveryMethods: Set[DeliveryMethod] = commonMethods
}
final case object Immunotherapy extends InterventionType {
- val id: LongId[InterventionType] = LongId[InterventionType](4)
- val name: String = "Immunotherapy"
- val deliveryMethod: Set[DeliveryMethod] = commonMethods
+ val id: LongId[InterventionType] = LongId[InterventionType](4)
+ val name: String = "Immunotherapy"
+ val deliveryMethods: Set[DeliveryMethod] = commonMethods
}
final case object Surgery extends InterventionType {
- val id: LongId[InterventionType] = LongId[InterventionType](5)
- val name: String = "Surgery"
- val deliveryMethod: Set[DeliveryMethod] = commonMethods
+ 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"
- val deliveryMethod: Set[DeliveryMethod] = commonMethods
+ val id: LongId[InterventionType] = LongId[InterventionType](6)
+ val name: String = "Hormone therapy"
+ val deliveryMethods: Set[DeliveryMethod] = commonMethods
}
final case object Other extends InterventionType {
- val id: LongId[InterventionType] = LongId[InterventionType](7)
- val name: String = "Other"
- val deliveryMethod: Set[DeliveryMethod] = commonMethods
+ val id: LongId[InterventionType] = LongId[InterventionType](7)
+ val name: String = "Other"
+ val deliveryMethods: Set[DeliveryMethod] = commonMethods
}
final case object Radiation extends InterventionType {
val id: LongId[InterventionType] = LongId[InterventionType](8)
val name: String = "Radiation"
- val deliveryMethod: Set[DeliveryMethod] = Set(
+ val deliveryMethods: Set[DeliveryMethod] = Set(
ExternalRadiationTherapy,
Brachytherapy,
SystemicRadiationTherapyIV,
@@ -70,7 +70,7 @@ object InterventionType {
final case object SurgeryProcedure extends InterventionType {
val id: LongId[InterventionType] = LongId[InterventionType](9)
val name: String = "Surgery/Procedure"
- val deliveryMethod: Set[DeliveryMethod] = Set(
+ val deliveryMethods: Set[DeliveryMethod] = Set(
RadioFrequencyAblationRFA,
Cryoablation,
TherapeuticConventionalSurgery,