aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/Hypothesis.scala
blob: eb2b95e3d7920f56589375587d03ec3a705a7726 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package xyz.driver.pdsuidomain.entities

import xyz.driver.pdsuicommon.domain.UuidId
import xyz.driver.pdsuicommon.logging._

final case class Hypothesis(id: UuidId[Hypothesis],
                            name: String,
                            treatmentType: String,
                            description: String)

object Hypothesis {
  implicit def toPhiString(x: Hypothesis): PhiString = {
    import x._
    phi"Hypothesis(id=$id, name=${Unsafe(name)})"
  }
}