aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/export/patient/ExportPatientLabelEvidenceDocument.scala
blob: 1b3a6d61b68952f7d58495d614f77080328a26d9 (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.export.patient

import java.time.LocalDate

import xyz.driver.entities.clinic.ClinicalRecord
import xyz.driver.pdsuicommon.domain.LongId
import xyz.driver.pdsuicommon.logging._
import xyz.driver.pdsuidomain.entities._

final case class ExportPatientLabelEvidenceDocument(documentId: LongId[Document],
                                                    requestId: xyz.driver.core.Id[ClinicalRecord],
                                                    documentType: DocumentType,
                                                    providerType: ProviderType,
                                                    date: LocalDate)

object ExportPatientLabelEvidenceDocument extends PhiLogging {

  implicit def toPhiString(x: ExportPatientLabelEvidenceDocument): PhiString = {
    import x._
    phi"ExportPatientLabelEvidenceDocument(documentId=$documentId, requestId=${Unsafe(requestId)}, " +
      phi"documentType=${Unsafe(documentType)}, providerType=${Unsafe(providerType)}, date=$date)"
  }
}