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/formats/json | |
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/formats/json')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthypothesis.scala | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthypothesis.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthypothesis.scala index a459158..da991a4 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthypothesis.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthypothesis.scala @@ -2,7 +2,6 @@ package xyz.driver.pdsuidomain.formats.json import spray.json._ import xyz.driver.pdsuidomain.entities._ -import xyz.driver.pdsuidomain.services.PatientHypothesisService.RichPatientHypothesis object patienthypothesis { import DefaultJsonProtocol._ @@ -20,20 +19,6 @@ object patienthypothesis { case _ => deserializationError(s"Expected Json Object as partial PatientHypothesis, but got $json") } - implicit val richPatientHypothesisWriter: RootJsonWriter[RichPatientHypothesis] = - new RootJsonWriter[RichPatientHypothesis] { - override def write(obj: RichPatientHypothesis): JsValue = { - JsObject( - "id" -> obj.patientHypothesis.id.toJson, - "patientId" -> obj.patientHypothesis.patientId.toJson, - "hypothesisId" -> obj.patientHypothesis.hypothesisId.toJson, - "matchedTrials" -> obj.patientHypothesis.matchedTrials.toJson, - "rationale" -> obj.patientHypothesis.rationale.toJson, - "isRationaleRequired" -> obj.isRequired.toJson - ) - } - } - implicit val patientHypothesisWriter: RootJsonWriter[PatientHypothesis] = new RootJsonWriter[PatientHypothesis] { override def write(obj: PatientHypothesis): JsValue = { |