aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala
diff options
context:
space:
mode:
authorKseniya Tomskikh <ktomskih@datamonsters.co>2017-07-03 18:06:35 +0600
committerVyatcheslav Suharnikov <arz.freezy@gmail.com>2017-07-11 23:23:32 +0300
commit01170a92bec7e09be89727143b442e4fb78446e7 (patch)
treedfb35a72bc4f655e46cea2e89d3279085904785f /src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala
parent64b1565004ff530c34484dd80bff268e46c864ca (diff)
downloadrest-query-01170a92bec7e09be89727143b442e4fb78446e7.tar.gz
rest-query-01170a92bec7e09be89727143b442e4fb78446e7.tar.bz2
rest-query-01170a92bec7e09be89727143b442e4fb78446e7.zip
PDSUI-2003 Added arm ids list to PatientCriterion
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala b/src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala
index e23dfc5..5c9aa19 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala
@@ -40,7 +40,7 @@ object PatientCriterionService {
object GetListReply {
type Error = GetListReply with DomainError
- case class EntityList(xs: Seq[(PatientCriterion, LongId[Label], List[Arm], Boolean)],
+ case class EntityList(xs: Seq[(PatientCriterion, LongId[Label], List[PatientCriterionArm])],
totalFound: Int,
lastUpdate: Option[LocalDateTime])
extends GetListReply
@@ -59,7 +59,7 @@ object PatientCriterionService {
object GetByIdReply {
type Error = GetByIdReply with DomainError
- case class Entity(x: PatientCriterion, labelId: LongId[Label], armList: List[Arm], criterionIsCompound: Boolean)
+ case class Entity(x: PatientCriterion, labelId: LongId[Label], armList: List[PatientCriterionArm])
extends GetByIdReply
case object AuthorizationError
@@ -74,9 +74,7 @@ object PatientCriterionService {
implicit def toPhiString(reply: GetByIdReply): PhiString = reply match {
case x: DomainError => phi"GetByIdReply.Error($x)"
- case Entity(x, labelId, armList, criterionIsCompound) =>
- phi"GetByIdReply.Entity(entity=$x, labelId=$labelId, " +
- phi"armList=$armList, criterionIsCompound=$criterionIsCompound)"
+ case Entity(x, labelId, armList) => phi"GetByIdReply.Entity(entity=$x, labelId=$labelId, armList=$armList)"
}
}
@@ -84,7 +82,7 @@ object PatientCriterionService {
object UpdateReply {
type Error = UpdateReply with DomainError
- case class Updated(x: PatientCriterion, labelId: LongId[Label], armList: List[Arm], criterionIsCompound: Boolean)
+ case class Updated(x: PatientCriterion, labelId: LongId[Label], armList: List[PatientCriterionArm])
extends UpdateReply
case object UpdatedList extends UpdateReply