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

import xyz.driver.entities.labels.LabelValue
import xyz.driver.pdsuicommon.domain._
import xyz.driver.pdsuicommon.logging._
import xyz.driver.pdsuidomain.entities.ExtractedData

final case class ExportPatientLabelEvidence(id: LongId[ExtractedData],
                                            value: LabelValue,
                                            evidenceText: String,
                                            document: ExportPatientLabelEvidenceDocument)

object ExportPatientLabelEvidence {

  implicit def toPhiString(x: ExportPatientLabelEvidence): PhiString = {
    import x._
    phi"ExportPatientLabelEvidence(id=${Unsafe(id)}, value=${Unsafe(value)}, " +
      phi"evidenceText=${Unsafe(evidenceText)}, document=$document)"
  }

}