aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/PatientHypothesis.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/entities/PatientHypothesis.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/entities/PatientHypothesis.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/PatientHypothesis.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/PatientHypothesis.scala
new file mode 100644
index 0000000..146b1c3
--- /dev/null
+++ b/src/main/scala/xyz/driver/pdsuidomain/entities/PatientHypothesis.scala
@@ -0,0 +1,18 @@
+package xyz.driver.pdsuidomain.entities
+
+import xyz.driver.pdsuicommon.domain.UuidId
+import xyz.driver.pdsuicommon.logging._
+
+object PatientHypothesis {
+ implicit def toPhiString(x: PatientHypothesis): PhiString = {
+ import x._
+ phi"PatientHypothesis(id=$id, patientId=$patientId, hypothesisId=$hypothesisId, " +
+ phi"rationale=${Unsafe(rationale)}, matchedTrials=${Unsafe(matchedTrials)})"
+ }
+}
+
+case class PatientHypothesis(id: UuidId[PatientHypothesis],
+ patientId: UuidId[Patient],
+ hypothesisId: UuidId[Hypothesis],
+ rationale: Option[String],
+ matchedTrials: Long)