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