diff options
author | vlad <vlad@driver.xyz> | 2017-11-02 13:38:23 -0700 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-11-02 13:38:23 -0700 |
commit | 144d8da225d18584dbc19589ba735b84cf3b6637 (patch) | |
tree | 17f8f196f857ed1cb36399c9efd6c78ab4382fe1 /src/main/scala/xyz/driver/pdsuidomain/services | |
parent | 022e55f0723cbb957e77a06e717e3df847abb00c (diff) | |
download | rest-query-144d8da225d18584dbc19589ba735b84cf3b6637.tar.gz rest-query-144d8da225d18584dbc19589ba735b84cf3b6637.tar.bz2 rest-query-144d8da225d18584dbc19589ba735b84cf3b6637.zip |
PDSUI-2329 Removing `isRationaleRequired` field from the `PatientHypothesis`v0.12.3
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/services')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/services/PatientHypothesisService.scala | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/services/PatientHypothesisService.scala b/src/main/scala/xyz/driver/pdsuidomain/services/PatientHypothesisService.scala index 07734ed..1e655d5 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/services/PatientHypothesisService.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/services/PatientHypothesisService.scala @@ -23,17 +23,9 @@ object PatientHypothesisService { def userMessage: String = "Access denied" } - final case class RichPatientHypothesis(patientHypothesis: PatientHypothesis, isRequired: Boolean) - - object RichPatientHypothesis { - implicit def toPhiString(x: RichPatientHypothesis): PhiString = { - phi"RichPatientHypothesis(patientHypothesis=${x.patientHypothesis}, isRequired=${x.isRequired})" - } - } - sealed trait GetListReply object GetListReply { - final case class EntityList(xs: Seq[RichPatientHypothesis], totalFound: Int) extends GetListReply + final case class EntityList(xs: Seq[PatientHypothesis], totalFound: Int) extends GetListReply case object AuthorizationError extends GetListReply with DomainError.AuthorizationError with DefaultAccessDeniedError @@ -46,7 +38,7 @@ object PatientHypothesisService { sealed trait GetByIdReply object GetByIdReply { - final case class Entity(x: RichPatientHypothesis) extends GetByIdReply + final case class Entity(x: PatientHypothesis) extends GetByIdReply type Error = GetByIdReply with DomainError |