1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package xyz.driver.pdsuidomain.entities
import xyz.driver.entities.labels.{Label, LabelValue}
import xyz.driver.pdsuicommon.domain.{LongId, UuidId}
import xyz.driver.pdsuicommon.logging._
object PatientLabel {
implicit def toPhiString(x: PatientLabel): PhiString = {
import x._
phi"PatientLabel(id=$id, patientId=$patientId, labelId=$labelId, " +
phi"score=${Unsafe(score)}, primaryValue=${Unsafe(primaryValue)}, " +
phi"verifiedPrimaryValue=${Unsafe(verifiedPrimaryValue)})"
}
}
final case class PatientLabel(id: LongId[PatientLabel],
patientId: UuidId[Patient],
labelId: LongId[Label],
score: Int,
primaryValue: Option[LabelValue],
verifiedPrimaryValue: Option[LabelValue],
isImplicitMatch: Boolean,
isVisible: Boolean)
object PatientLabelEvidence {
implicit def toPhiString(x: PatientLabelEvidence): PhiString = {
import x._
phi"PatientLabelEvidence(id=$id, patientLabelId=$patientLabelId, value=${Unsafe(value)}, " +
phi"documentId=$documentId, evidenceId=$evidenceId, reportId=$reportId)"
}
}
final case class PatientLabelEvidence(id: LongId[PatientLabelEvidence],
patientLabelId: LongId[PatientLabel],
value: LabelValue,
evidenceText: String,
reportId: Option[UuidId[DirectReport]],
documentId: Option[LongId[Document]],
evidenceId: Option[LongId[ExtractedData]])
|