aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/Hypothesis.scala
blob: 47b87ffb8e78f04a06aaa7f8f5766044ff49af3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)})"
  }
}