diff options
author | ktomskikh <ktomskih@datamonsters.co> | 2017-09-14 16:31:52 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 16:31:52 +0700 |
commit | 1e2acbe4e5134fc5a2657adf9da1873b5c7000cb (patch) | |
tree | 16a0f2edcffe7fecc02ddd97212265a339b9b482 /src/main/scala/xyz/driver/pdsuidomain/formats/json/intervention/ApiIntervention.scala | |
parent | cb3992db49f7c73f37c2489d4225d10055a3cb5a (diff) | |
parent | 2e2f9213a16bf5728f4615f927ba29536b3c20be (diff) | |
download | rest-query-1e2acbe4e5134fc5a2657adf9da1873b5c7000cb.tar.gz rest-query-1e2acbe4e5134fc5a2657adf9da1873b5c7000cb.tar.bz2 rest-query-1e2acbe4e5134fc5a2657adf9da1873b5c7000cb.zip |
Merge pull request #24 from drivergroup/PDSUI-2273
PDSUI-2273 Renamed intervention.description to dosage
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats/json/intervention/ApiIntervention.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/intervention/ApiIntervention.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/intervention/ApiIntervention.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/intervention/ApiIntervention.scala index 39acbde..ba383b6 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/intervention/ApiIntervention.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/intervention/ApiIntervention.scala @@ -8,7 +8,7 @@ import play.api.libs.json.{Format, JsPath} final case class ApiIntervention(id: Long, name: String, typeId: Option[Long], - description: String, + dosage: String, isActive: Boolean, arms: List[Long], trialId: String, @@ -24,7 +24,7 @@ final case class ApiIntervention(id: Long, originalName = this.originalName, typeId = this.typeId.map(id => LongId(id)), originalType = this.originalType.map(id => id.toString), - description = this.description, + dosage = this.dosage, originalDescription = this.originalDescription, isActive = this.isActive ) @@ -43,7 +43,7 @@ object ApiIntervention { (JsPath \ "id").format[Long] and (JsPath \ "name").format[String] and (JsPath \ "typeId").formatNullable[Long] and - (JsPath \ "description").format[String] and + (JsPath \ "dosage").format[String] and (JsPath \ "isActive").format[Boolean] and (JsPath \ "arms").format[List[Long]] and (JsPath \ "trialId").format[String] and @@ -60,7 +60,7 @@ object ApiIntervention { id = intervention.id.id, name = intervention.name, typeId = intervention.typeId.map(_.id), - description = intervention.description, + dosage = intervention.dosage, isActive = intervention.isActive, arms = arms.map(_.armId.id), trialId = intervention.trialId.id, |