aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/LinkedPatient.scala
blob: e82bcc3ae22c43d857878d247a49cf7d698e029b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package xyz.driver.pdsuidomain.entities

import xyz.driver.pdsuicommon.domain._
import xyz.driver.pdsuicommon.logging._

object LinkedPatient {

  implicit def toPhiString(x: LinkedPatient): PhiString = {
    import x._
    phi"LinkedPatient(userId=$userId, patientId=$patientId, trialId=$trialId)"
  }
}

case class LinkedPatient(userId: LongId[User],
                         patientId: UuidId[Patient],
                         trialId: StringId[Trial])