aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/export/patient/ExportPatientLabelEvidence.scala
diff options
context:
space:
mode:
authorvlad <vlad@driver.xyz>2017-10-09 12:24:59 -0700
committervlad <vlad@driver.xyz>2017-10-09 12:24:59 -0700
commit7d8712a62d30b412717e1b730c0ad267cd207aa4 (patch)
tree76662e1b233943c1c840a658682aac9766aa64d7 /src/main/scala/xyz/driver/pdsuidomain/entities/export/patient/ExportPatientLabelEvidence.scala
parent52b5e1a5febc91aa316565fdea309df2b646481e (diff)
downloadrest-query-7d8712a62d30b412717e1b730c0ad267cd207aa4.tar.gz
rest-query-7d8712a62d30b412717e1b730c0ad267cd207aa4.tar.bz2
rest-query-7d8712a62d30b412717e1b730c0ad267cd207aa4.zip
Getting rid of the FuzzyValues, Name as a string, and condition
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/entities/export/patient/ExportPatientLabelEvidence.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/entities/export/patient/ExportPatientLabelEvidence.scala19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/export/patient/ExportPatientLabelEvidence.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/export/patient/ExportPatientLabelEvidence.scala
index fb40339..6472a6b 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/entities/export/patient/ExportPatientLabelEvidence.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/entities/export/patient/ExportPatientLabelEvidence.scala
@@ -1,11 +1,12 @@
package xyz.driver.pdsuidomain.entities.export.patient
+import xyz.driver.entities.labels.LabelValue
import xyz.driver.pdsuicommon.domain._
import xyz.driver.pdsuicommon.logging._
-import xyz.driver.pdsuidomain.entities.{ExtractedData, RawPatientLabel}
+import xyz.driver.pdsuidomain.entities.ExtractedData
final case class ExportPatientLabelEvidence(id: LongId[ExtractedData],
- value: FuzzyValue,
+ value: LabelValue,
evidenceText: String,
document: ExportPatientLabelEvidenceDocument)
@@ -13,20 +14,8 @@ object ExportPatientLabelEvidence {
implicit def toPhiString(x: ExportPatientLabelEvidence): PhiString = {
import x._
- phi"ExportPatientLabelEvidence(id=${Unsafe(id)}, value=$value, " +
+ phi"ExportPatientLabelEvidence(id=${Unsafe(id)}, value=${Unsafe(value)}, " +
phi"evidenceText=${Unsafe(evidenceText)}, document=$document)"
}
- def fromRaw(x: RawPatientLabel) = ExportPatientLabelEvidence(
- id = x.evidenceId,
- value = x.value,
- evidenceText = x.evidenceText,
- document = ExportPatientLabelEvidenceDocument(
- x.documentId,
- x.requestId,
- x.documentType,
- x.providerType,
- x.startDate
- )
- )
}