aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala
deleted file mode 100644
index 8d64389..0000000
--- a/src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala
+++ /dev/null
@@ -1,47 +0,0 @@
-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: LabelValue,
- verifiedPrimaryValue: LabelValue,
- isImplicitMatch: Boolean,
- isVisible: Boolean)
-
-final case class RichPatientLabel(patientLabel: PatientLabel, isVerified: Boolean)
-
-object RichPatientLabel {
- implicit def toPhiString(x: RichPatientLabel): PhiString = {
- phi"RichPatientLabel(patientLabel=${x.patientLabel}, isVerified=${x.isVerified})"
- }
-}
-
-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]])