aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala
diff options
context:
space:
mode:
authorJakob Odersky <jakob@driver.xyz>2017-07-05 19:02:13 -0700
committerJakob Odersky <jakob@driver.xyz>2017-07-12 21:04:25 -0700
commitf9ac0adf5c3bcfcde03bd3ea2bc2471b0d0f99fe (patch)
tree9e26568fe6598074a6de8815b465cbfc7ff69b7c /src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala
parent3d902b5197db861c30325c159dc10cfb211ae209 (diff)
downloadrest-query-f9ac0adf5c3bcfcde03bd3ea2bc2471b0d0f99fe.tar.gz
rest-query-f9ac0adf5c3bcfcde03bd3ea2bc2471b0d0f99fe.tar.bz2
rest-query-f9ac0adf5c3bcfcde03bd3ea2bc2471b0d0f99fe.zip
Implement REST services for trial curation
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala b/src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala
index ddc927d..a313703 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala
@@ -18,7 +18,7 @@ object ExportService {
object GetPatientReply {
type Error = GetPatientReply with DomainError
- case class Entity(x: ExportPatientWithLabels) extends GetPatientReply
+ final case class Entity(x: ExportPatientWithLabels) extends GetPatientReply
case object NotFoundError extends GetPatientReply with DomainError.NotFoundError {
def userMessage: String = "Patient not found"
@@ -27,7 +27,7 @@ object ExportService {
sealed trait GetTrialListReply
object GetTrialListReply {
- case class EntityList(xs: Seq[ExportTrial], totalFound: Int, lastUpdate: Option[LocalDateTime])
+ final case class EntityList(xs: Seq[ExportTrial], totalFound: Int, lastUpdate: Option[LocalDateTime])
extends GetTrialListReply
}
@@ -35,7 +35,7 @@ object ExportService {
object GetTrialReply {
type Error = GetTrialReply with DomainError
- case class Entity(x: ExportTrialWithLabels) extends GetTrialReply
+ final case class Entity(x: ExportTrialWithLabels) extends GetTrialReply
case object NotFoundError extends GetTrialReply with DomainError.NotFoundError {
def userMessage: String = "Trial not found"