aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/LinkedPatient.scala
blob: 1b30c649a77dac0e5e79b79ba29d2202b5732ded (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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])