diff options
author | Vlad Uspensky <v.uspenskiy@icloud.com> | 2017-09-26 12:48:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 12:48:55 -0700 |
commit | 7bb4873042d1bc557a7f2e78b15a44d3ba182bf5 (patch) | |
tree | 15fe180be3f035f308168d5564d01cf293a1f83a /src/main/scala/xyz/driver/pdsuidomain/entities | |
parent | 2cd8e672feba0d076f4f44f556f993f1db2043b7 (diff) | |
parent | c0ffb2a34240876c16f9ce62205cf257aa6d5991 (diff) | |
download | rest-query-7bb4873042d1bc557a7f2e78b15a44d3ba182bf5.tar.gz rest-query-7bb4873042d1bc557a7f2e78b15a44d3ba182bf5.tar.bz2 rest-query-7bb4873042d1bc557a7f2e78b15a44d3ba182bf5.zip |
Merge pull request #29 from drivergroup/PDSUI-2275
PDSUI-2275 Added delivery_method field to intervention table
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/entities')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala index cb677cf..5dada55 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/entities/Intervention.scala @@ -29,12 +29,13 @@ final case class Intervention(id: LongId[Intervention], originalType: Option[String], dosage: String, originalDosage: String, - isActive: Boolean) + isActive: Boolean, + deliveryMethod: Option[String]) object Intervention { implicit def toPhiString(x: Intervention): PhiString = { import x._ - phi"Intervention(id=$id, trialId=$trialId, name=${Unsafe(name)}, typeId=$typeId, isActive=$isActive)" + phi"Intervention(id=$id, trialId=$trialId, name=${Unsafe(name)}, typeId=$typeId, isActive=$isActive, deliveryMethod=${Unsafe(deliveryMethod)})" } } |