blob: 7003615811de48f84f498e038b589548ae2bae78 (
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
24
25
26
27
28
29
30
|
package xyz.driver.pdsuidomain.entities.export.patient
import java.time.LocalDate
import xyz.driver.pdsuicommon.domain._
import xyz.driver.pdsuicommon.logging._
import xyz.driver.pdsuidomain.entities._
final case class ExportPatientLabelEvidenceDocument(documentId: LongId[Document],
requestId: RecordRequestId,
documentType: DocumentType,
providerType: ProviderType,
date: LocalDate)
object ExportPatientLabelEvidenceDocument extends PhiLogging {
implicit def toPhiString(x: ExportPatientLabelEvidenceDocument): PhiString = {
import x._
phi"ExportPatientLabelEvidenceDocument(documentId=$documentId, requestId=$requestId, " +
phi"documentType=${Unsafe(documentType)}, providerType=${Unsafe(providerType)}, date=$date)"
}
def fromRaw(x: RawPatientLabel) = ExportPatientLabelEvidenceDocument(
documentId = x.documentId,
requestId = x.requestId,
documentType = x.documentType,
providerType = x.providerType,
date = x.startDate
)
}
|