aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/LinkedPatient.scala
blob: 28f279f91caf33ec5f2a82f8689acf03e19c285b (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: StringId[User], patientId: UuidId[Patient], trialId: StringId[Trial])