blob: b60c2ea0f2fb9b6f18131e2313622330240210f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package xyz.driver.pdsuidomain.entities
import java.time.LocalDateTime
import xyz.driver.core.auth.User
import xyz.driver.pdsuicommon.domain._
import xyz.driver.pdsuicommon.logging._
final case class PatientIssue(id: LongId[PatientIssue],
userId: xyz.driver.core.Id[User],
patientId: UuidId[Patient],
lastUpdate: LocalDateTime,
isDraft: Boolean,
text: String,
archiveRequired: Boolean)
object PatientIssue {
implicit def toPhiString(x: PatientIssue): PhiString = {
import x._
phi"PatientIssue(id=$id, userId=${Unsafe(userId)}, patientId=$patientId)"
}
}
|