aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/formats/json/intervention/ApiIntervention.scala
diff options
context:
space:
mode:
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.scala8
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,