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

import xyz.driver.pdsuicommon.domain._
import xyz.driver.pdsuicommon.logging._
import xyz.driver.pdsuidomain.entities.Patient

final case class ExportPatientWithLabels(patientId: UuidId[Patient],
                                         labelVersion: Long,
                                         labels: List[ExportPatientLabel])

object ExportPatientWithLabels {

  implicit def toPhiString(x: ExportPatientWithLabels): PhiString = {
    import x._
    phi"ExportPatientWithLabels(patientId=$patientId, version=${Unsafe(labelVersion)}, labels=$labels)"
  }
}