aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/PatientHypothesis.scala
blob: 146b1c33ff2a7132baeca9f96934fb948a539e81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)