aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/DirectReport.scala
blob: f35c3fd588548d1f1d9037ad275381b1c402d1b3 (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
package xyz.driver.pdsuidomain.entities

import java.time.LocalDate

import xyz.driver.entities.assays.AssayType
import xyz.driver.pdsuicommon.logging._
import xyz.driver.pdsuicommon.domain.UuidId

object DirectReport {
  implicit def toPhiString(x: DirectReport): PhiString = {
    import x._
    phi"DirectReport(id=$id, patientId=$patientId, reportType=${Unsafe(reportType)}, date=${Unsafe(date)}, " +
      phi"documentType=${Unsafe(documentType)}, providerType=${Unsafe(providerType)}, " +
      phi"providerName=${Unsafe(providerName)})"
  }
}

final case class DirectReport(id: UuidId[DirectReport],
                              patientId: UuidId[Patient],
                              reportType: AssayType,
                              date: LocalDate,
                              documentType: DocumentType,
                              providerType: ProviderType,
                              providerName: String)