diff options
author | Vlad Uspensky <v.uspenskiy@icloud.com> | 2017-07-21 19:14:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 19:14:02 -0700 |
commit | a835eef22830ab86a9f65194a6645f4f474ae0cc (patch) | |
tree | 13c14e33e346560a8db587b589b6a9464f3e6616 /src/main/scala/xyz/driver/pdsuidomain/entities/export/trial/ExportTrial.scala | |
parent | 525ef428d950a6c9ddb58247101aeb1cb1f42d80 (diff) | |
parent | 92f503ce18e90c9955bed8b0a8c6ec2e30f0304e (diff) | |
download | rest-query-a835eef22830ab86a9f65194a6645f4f474ae0cc.tar.gz rest-query-a835eef22830ab86a9f65194a6645f4f474ae0cc.tar.bz2 rest-query-a835eef22830ab86a9f65194a6645f4f474ae0cc.zip |
Merge pull request #9 from drivergroup/export-service-separationv0.2.4
Export service separation
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/entities/export/trial/ExportTrial.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/entities/export/trial/ExportTrial.scala | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/export/trial/ExportTrial.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/export/trial/ExportTrial.scala deleted file mode 100644 index 1aed121..0000000 --- a/src/main/scala/xyz/driver/pdsuidomain/entities/export/trial/ExportTrial.scala +++ /dev/null @@ -1,27 +0,0 @@ -package xyz.driver.pdsuidomain.entities.export.trial - -import java.time.LocalDateTime - -import xyz.driver.pdsuicommon.domain._ -import xyz.driver.pdsuicommon.logging._ -import xyz.driver.pdsuidomain.entities.Trial - -final case class ExportTrial(nctId: StringId[Trial], - trialId: UuidId[Trial], - condition: Trial.Condition, - lastReviewed: LocalDateTime) - -object ExportTrial { - - implicit def toPhiString(x: ExportTrial): PhiString = { - import x._ - phi"ExportTrial(nctId=$nctId, trialId=$trialId, condition=${Unsafe(condition)}, lastReviewed=$lastReviewed)" - } - - def fromDomain(x: Trial) = ExportTrial( - nctId = x.id, - trialId = x.externalId, - condition = x.condition, - lastReviewed = x.lastUpdate - ) -} |