diff options
author | Vlad Uspensky <v.uspenskiy@icloud.com> | 2018-01-23 17:37:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-23 17:37:35 -0800 |
commit | cf397367e2d8e0da371aae22a2d41578b8f48e44 (patch) | |
tree | 7440d630fea2205102ac7d40995b5588f0cdd3f9 /src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala | |
parent | 1fa8b54fee10c09485a2d098ddb5e0013f4205b2 (diff) | |
parent | 61bb1951da84446b7c81ea56884476fa1237a91e (diff) | |
download | rest-query-cf397367e2d8e0da371aae22a2d41578b8f48e44.tar.gz rest-query-cf397367e2d8e0da371aae22a2d41578b8f48e44.tar.bz2 rest-query-cf397367e2d8e0da371aae22a2d41578b8f48e44.zip |
Merge pull request #77 from drivergroup/TRIAL-192v0.15.2
TRIAL-192, TRIAL-159 Trial model simplification to support Trial Sync…
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala | 16 |
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, |