aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/entities/DirectReport.scala6
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/DirectReport.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/DirectReport.scala
index b5714b6..c09a1d8 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/entities/DirectReport.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/entities/DirectReport.scala
@@ -16,11 +16,11 @@ object DirectReport {
}
object ReportType {
- case object IHC extends ReportType
- case object DNA extends ReportType
+ case object IHC extends ReportType
+ case object DNA extends ReportType
case object CFDNA extends ReportType
- val All = Set(IHC, DNA, CFDNA)
+ val All = Set(IHC, DNA, CFDNA)
implicit def toPhiString(x: ReportType): PhiString = Unsafe(Utils.getClassSimpleName(x.getClass))
}
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala
index cb6f8a0..63d38f8 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/entities/PatientLabel.scala
@@ -25,7 +25,7 @@ object PatientLabelEvidence {
implicit def toPhiString(x: PatientLabelEvidence): PhiString = {
import x._
phi"PatientLabelEvidence(id=$id, patientLabelId=$patientLabelId, value=${Unsafe(value)}, " +
- phi"documentId=$documentId, evidenceId=$evidenceId)"
+ phi"documentId=$documentId, evidenceId=$evidenceId, reportId=$reportId)"
}
}
@@ -33,5 +33,6 @@ case class PatientLabelEvidence(id: LongId[PatientLabelEvidence],
patientLabelId: LongId[PatientLabel],
value: FuzzyValue,
evidenceText: String,
- documentId: LongId[Document],
- evidenceId: LongId[ExtractedData])
+ reportId: Option[UuidId[DirectReport]],
+ documentId: Option[LongId[Document]],
+ evidenceId: Option[LongId[ExtractedData]])